async-json-parser
Advanced tools
Comparing version
{ | ||
"name": "async-json-parser", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
# Async JSON parser | ||
## parse | ||
```js | ||
@@ -26,1 +28,14 @@ import fs from 'fs'; | ||
## stringify | ||
```js | ||
import fs from 'fs'; | ||
import {stringify} from 'async-json-parser'; | ||
import json from './test.json'; | ||
(async () => { | ||
const data = await stringify(json); | ||
fs.writeFileSync('data.json', data); | ||
})(); | ||
``` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
298102
0.25%11254
0.19%41
57.69%