1.0.1 • Published 5 months ago
node-js-fast-json v1.0.1
Fast JSON Parser
High-performance asynchronous JSON parser for Node.js
Installation
npm install node-js-fast-json
Usage
const fastJsonParser = require('node-js-fast-json');
// Using Promise
fastJsonParser.parseAsync('{"key": "value"}')
.then(result => console.log(result))
.catch(err => console.error(err));
// Using callback
fastJsonParser.parseAsync('{"key": "value"}', (err, result) => {
if (err) {
console.error(err);
} else {
console.log(result);
}
});