Skip to content

Commit 0199cc9

Browse files
committed
Format README of @solana/fast-stable-stringify
1 parent 5ed19c6 commit 0199cc9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

packages/fast-stable-stringify/README.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,24 @@ The most popular repository providing this feature is [substack's json-stable-st
77
Usage:
88

99
```javascript
10-
var stringify = require('fast-stable-stringify');
10+
import stringify from '@solana/fast-stable-stringify';
1111
stringify({ d: 0, c: 1, a: 2, b: 3, e: 4 }); // '{"a":2,"b":3,"c":1,"d":0,"e":4}'
1212
```
1313

1414
Just like substack's, it does:
1515

16-
* handle all variations of all basic javascript values (number, string, boolean, array, object, null, Date, BigInt)
17-
* handle undefined _and_ function in the same way as `JSON.stringify`
18-
* **not support ie8 (and below) with complete certainty**.
16+
- handle all variations of all basic javascript values (number, string, boolean, array, object, null, Date, BigInt)
17+
- handle undefined _and_ function in the same way as `JSON.stringify`
18+
- **not support ie8 (and below) with complete certainty**.
1919

2020
Unlike substack's, it does:
2121

22-
* not implement the 'replacer' or 'space' arguments of the JSON.stringify method
23-
* not check for circular references
24-
22+
- not implement the 'replacer' or 'space' arguments of the JSON.stringify method
23+
- not check for circular references
2524

2625
## Running tests
2726

2827
```
2928
npm run test:unit:browser
30-
npm run test:unit:node
31-
```
29+
npm run test:unit:node
30+
```

0 commit comments

Comments
 (0)