json-strify
v0.1.9
Published
Faster implementation of JSON.stringify
Downloads
38
Readme
json-strify
Faster implementation of JSON.stringify
Performance: This library ~50% faster than JSON.stringify
on larger objects/arrays
Note: This library doesn't handle Ciruclar references, instead of just replaces Circular reference to [Circular]
string, but doesn't throw error
Features
- Performant
- Easy
- Auto-schema generating
Installation
We recommend install via npm
because of it's cache and flat node modules tree
npm i json-strify
then you able to import to Node.js/Browser easily
// Node.js
const JSONStringify = require('json-strify');
// ES6
import JSONStringify from 'json-strify';
Usage
JSONStringify(object: any): string
License
MIT