1.1.13 • Published 2 years ago

big-sync-json v1.1.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Big Sync JSON

Overcomes 512MB String limitation of regular JSON.parse() and JSON.stringify() by not stringifying the whole buffer.

Usage Example

const fs = require('fs')
const BSJON = require('big-sync-json')

let jsonBuffer = fs.readFileSync('./big-json.json')

let jsonData = BSJON.parse(jsonBuffer)

let jsonBuffer2 = BSJSON.bufferize(jsonData)

fs.writeFileSync('./big.json.json', jsonBuffer2)

Features

  • It is a drop-in replacement for JSON.parse()

  • Does not require you to make any other changes in order to parse bigger JSON files on a project

Issues

Feel free to open issues on Github if you have any problems with the package. Although the package was tested with valid JSON files without any problems, for now, unexpected outputs may occur from non-valid JSON buffers.

License

MIT

Roadmap

  • Log the status if it is given as an option as it might take some time to parse or bufferize big files

  • Change errors to be compliant with JSON.parse() and JSON.stringify()

  • Support reviver argument from JSON.parse() on .parse() method

  • Support replacer and space arguments from JSON.stringify() on .bufferize() method

  • Support trailing commas as an option

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago