{"_id":"@discoveryjs/json-ext","_rev":"259193","name":"@discoveryjs/json-ext","description":"A set of utilities that extend the use of JSON","dist-tags":{"latest":"0.5.7"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"time":{"modified":"2023-03-27T17:06:00.000Z","created":"2020-09-08T10:28:09.409Z","0.5.7":"2022-03-09T17:28:40.118Z","0.5.6":"2021-11-30T22:03:40.220Z","0.5.5":"2021-09-14T23:26:36.304Z","0.5.4":"2021-09-14T14:38:40.682Z","0.5.3":"2021-05-13T21:20:31.220Z","0.5.2":"2020-12-26T14:40:42.615Z","0.5.1":"2020-12-18T21:30:07.215Z","0.5.0":"2020-12-05T22:50:28.304Z","0.4.0":"2020-12-04T22:51:44.556Z","0.3.2":"2020-10-26T13:42:42.490Z","0.3.1":"2020-10-26T13:14:38.894Z","0.3.0":"2020-09-28T13:18:05.909Z","0.2.0":"2020-09-28T12:34:45.967Z","0.1.1":"2020-09-08T16:10:13.231Z","0.1.0":"2020-09-08T10:28:09.409Z"},"users":{},"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"versions":{"0.5.7":{"name":"@discoveryjs/json-ext","version":"0.5.7","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js","./src/version.js":"./dist/version.js"},"types":"./index.d.ts","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"cross-env MODE=dist npm test && cross-env MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"c8 --reporter=lcovonly npm test","prepublishOnly":"npm run lint && npm test && npm run build-and-test"},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","c8":"^7.10.0","chalk":"^4.1.0","cross-env":"^7.0.3","eslint":"^8.10.0","mocha":"^8.4.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"38b72d411627b57ab8c91f60dc6ae6205fbfcaca","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.7","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"1d572bfbbe14b7704e0ba0f39b74815b84870d70","size":18392,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.7.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.7.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.7_1646846919966_0.587183615906542"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-09T17:31:12.006Z","publish_time":1646846920118,"_cnpm_publish_time":1646846920118},"0.5.6":{"name":"@discoveryjs/json-ext","version":"0.5.6","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"types":"./index.d.ts","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"cross-env MODE=dist npm test && cross-env MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run build-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","cross-env":"^7.0.3","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"baf1f9567e098d7d03fc0f07b335560e53aa166a","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.6","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"d5e0706cf8c6acd8c6032f8d54070af261bbbb2f","size":19019,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.6.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.6.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.6_1638309820062_0.5492637512489906"},"_hasShrinkwrap":false,"publish_time":1638309820220,"_cnpm_publish_time":1638309820220,"_cnpmcore_publish_time":"2021-12-16T10:21:29.969Z"},"0.5.5":{"name":"@discoveryjs/json-ext","version":"0.5.5","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"types":"./index.d.ts","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"cross-env MODE=dist npm test && cross-env MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run build-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","cross-env":"^7.0.3","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"6ccfaf5b6d95ab74a5502ec5f8730c11f480b374","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.5","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"shasum":"9283c9ce5b289a3c4f61c12757469e59377f81f3","size":19830,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.5.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.5.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.5_1631661996142_0.6007107464481163"},"_hasShrinkwrap":false,"publish_time":1631661996304,"_cnpm_publish_time":1631661996304,"_cnpmcore_publish_time":"2021-12-16T10:21:30.299Z"},"0.5.4":{"name":"@discoveryjs/json-ext","version":"0.5.4","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"types":"./index.d.ts","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"cross-env MODE=dist npm test && cross-env MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run build-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","cross-env":"^7.0.3","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"fb77e4626aac7b58aca6a15f6ba876ce1c7ae88e","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.4","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"shasum":"d8f0f394dec7be40b5113cd78088339c42ee811f","size":19522,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.4.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.4.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.4_1631630320547_0.7234853518014437"},"_hasShrinkwrap":false,"publish_time":1631630320682,"_cnpm_publish_time":1631630320682,"_cnpmcore_publish_time":"2021-12-16T10:21:30.508Z"},"0.5.3":{"name":"@discoveryjs/json-ext","version":"0.5.3","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"cross-env MODE=dist npm test && cross-env MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run build-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","cross-env":"^7.0.3","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"705ff9155152f82a460e5db07edfbaec0efcee87","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.3","_nodeVersion":"16.1.0","_npmVersion":"6.14.13","dist":{"shasum":"90420f9f9c6d3987f176a19a7d8e764271a2f55d","size":19461,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.3.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.3.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.3_1620940831000_0.318175053419018"},"_hasShrinkwrap":false,"publish_time":1620940831220,"_cnpm_publish_time":1620940831220,"_cnpmcore_publish_time":"2021-12-16T10:21:30.825Z"},"0.5.2":{"name":"@discoveryjs/json-ext","version":"0.5.2","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"26a08f0fa6a52020bfe381ccff70aa6d3e28fe47","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.2","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"shasum":"8f03a22a04de437254e8ce8cc84ba39689288752","size":18409,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.2.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.2.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.2_1608993642423_0.008773222405023429"},"_hasShrinkwrap":false,"publish_time":1608993642615,"_cnpm_publish_time":1608993642615},"0.5.1":{"name":"@discoveryjs/json-ext","version":"0.5.1","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"ae99132df4c62c0febe4839c0b1648cbef99a2ab","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.1","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"shasum":"cf87081ac9b0f3eb3b5740415b50b7966bac8fc5","size":18166,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.1.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.1.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.1_1608327007078_0.11517650278064306"},"_hasShrinkwrap":false,"publish_time":1608327007215,"_cnpm_publish_time":1608327007215},"0.5.0":{"name":"@discoveryjs/json-ext","version":"0.5.0","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/stringify-stream-browser.js","./src/text-decoder.js":"./src/text-decoder-browser.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=10.0.0"},"gitHead":"0f7c96dd8d726eac751b0d141e61801448cae894","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.5.0","_nodeVersion":"15.3.0","_npmVersion":"6.14.8","dist":{"shasum":"d6cf8951ceb673db41861d544cef2f2e07ebcb4d","size":18133,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.5.0.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.0.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.5.0_1607208628075_0.5281334656205079"},"_hasShrinkwrap":false,"publish_time":1607208628304,"_cnpm_publish_time":1607208628304},"0.4.0":{"name":"@discoveryjs/json-ext","version":"0.4.0","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/browser-method-is-not-supported.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=12.0.0"},"gitHead":"fa11f97956e0a3a5d9d1f93be813b243ff41e39f","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.4.0","_nodeVersion":"15.3.0","_npmVersion":"6.14.8","dist":{"shasum":"f88244572b887d8379b7015f88e58f68e13806c2","size":17750,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.4.0.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.4.0.tgz"},"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.4.0_1607122304432_0.6432348233936858"},"_hasShrinkwrap":false,"publish_time":1607122304556,"_cnpm_publish_time":1607122304556},"0.3.2":{"name":"@discoveryjs/json-ext","version":"0.3.2","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./src/browser-method-is-not-supported.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=12.0.0"},"gitHead":"a899d78e2aaa136ddf194a4ca5bf6d9b15041f50","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.3.2","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"80ff80f3b221890fd125f185da1d2642e73abfa1","size":10893,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.3.2.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.3.2.tgz"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.3.2_1603719762168_0.9084722674572594"},"_hasShrinkwrap":false,"publish_time":1603719762490,"_cnpm_publish_time":1603719762490},"0.3.1":{"name":"@discoveryjs/json-ext","version":"0.3.1","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","browser":{"./src/stringify-stream.js":"./browser-method-is-not-supported.js"},"scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=12.0.0"},"gitHead":"bf83e68e36f6ced3fb8c5834b7ceb29761fedc59","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.3.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"7b33ccbef07506fe60d2ed7c9d70c8901ef01083","size":10817,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.3.1.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.3.1.tgz"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.3.1_1603718078744_0.6945715012920795"},"_hasShrinkwrap":false,"publish_time":1603718078894,"_cnpm_publish_time":1603718078894},"0.3.0":{"name":"@discoveryjs/json-ext","version":"0.3.0","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","test:all":"npm run test:src && npm run test:dist","test:src":"npm test","test:dist":"MODE=dist npm test && MODE=dist-min npm test","build-and-test":"npm run build && npm run test:dist","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublishOnly":"npm run build"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-node-resolve":"^9.0.0","chalk":"^4.1.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=12.0.0"},"gitHead":"b7cd5982f1653821588684bea0a09432eba30f23","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.3.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"d0943856e54e5859268e67b2d7f3755077e8a948","size":9915,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.3.0.tgz"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.3.0_1601299085771_0.009405064097204097"},"_hasShrinkwrap":false,"publish_time":1601299085909,"_cnpm_publish_time":1601299085909},"0.2.0":{"name":"@discoveryjs/json-ext","version":"0.2.0","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","build":"rollup --config","build-and-test":"npm run build && npm run test","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{},"devDependencies":{"@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-node-resolve":"^9.0.0","coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0","rollup":"^2.28.2","rollup-plugin-terser":"^7.0.2"},"engines":{"node":">=12.0.0"},"gitHead":"401a2a1731687ee53e83c40525515b4485b04f31","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.2.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"8596902f4339526cfd94b509b0735e5dc0edace3","size":6847,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.2.0.tgz"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.2.0_1601296485812_0.8763217546070752"},"_hasShrinkwrap":false,"publish_time":1601296485967,"_cnpm_publish_time":1601296485967},"0.1.1":{"name":"@discoveryjs/json-ext","version":"0.1.1","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./src/index","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{},"devDependencies":{"coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0"},"engines":{"node":">=12.0.0"},"gitHead":"71140a057fc45576f6bd0a5114fe04eaa8700776","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.1.1","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"7d36c499032406e3799f1c3f54f2f9b3f4272026","size":6717,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.1.1.tgz"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.1.1_1599581413133_0.7627358891071205"},"_hasShrinkwrap":false,"publish_time":1599581413231,"_cnpm_publish_time":1599581413231},"0.1.0":{"name":"@discoveryjs/json-ext","version":"0.1.0","description":"A set of utilities that extend the use of JSON","keywords":["json","utils","stream","async","promise","stringify","info"],"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com","url":"https://github.com/lahmatiy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/discoveryjs/json-ext.git"},"main":"./index","scripts":{"test":"mocha --reporter progress","lint":"eslint src test","lint-and-test":"npm run lint && npm test","coverage":"nyc npm test","travis":"nyc npm run lint-and-test && npm run coveralls","coveralls":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{},"devDependencies":{"coveralls":"^3.1.0","eslint":"^7.6.0","mocha":"^8.1.1","nyc":"^15.1.0"},"engines":{"node":">=12.0.0"},"gitHead":"afb917b9da63eafce1bb6f3c26b9a398e5d551a5","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"homepage":"https://github.com/discoveryjs/json-ext#readme","_id":"@discoveryjs/json-ext@0.1.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"58212ca5478669a5a50b5fa7a80ef9af86bd6092","size":6698,"noattachment":false,"key":"/@discoveryjs/json-ext/-/@discoveryjs/json-ext-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.1.0.tgz"},"maintainers":[{"name":"lahmatiy","email":""},{"name":"smelukov","email":""}],"_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-ext_0.1.0_1599560889285_0.9834944447673313"},"_hasShrinkwrap":false,"publish_time":1599560889409,"_cnpm_publish_time":1599560889409}},"readme":"# json-ext\n\n[![NPM version](https://img.shields.io/npm/v/@discoveryjs/json-ext.svg)](https://www.npmjs.com/package/@discoveryjs/json-ext)\n[![Build Status](https://github.com/discoveryjs/json-ext/actions/workflows/ci.yml/badge.svg)](https://github.com/discoveryjs/json-ext/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/discoveryjs/json-ext/badge.svg?branch=master)](https://coveralls.io/github/discoveryjs/json-ext?)\n[![NPM Downloads](https://img.shields.io/npm/dm/@discoveryjs/json-ext.svg)](https://www.npmjs.com/package/@discoveryjs/json-ext)\n\nA set of utilities that extend the use of JSON. Designed to be fast and memory efficient\n\nFeatures:\n\n- [x] `parseChunked()` – Parse JSON that comes by chunks (e.g. FS readable stream or fetch response stream)\n- [x] `stringifyStream()` – Stringify stream (Node.js)\n- [x] `stringifyInfo()` – Get estimated size and other facts of JSON.stringify() without converting a value to string\n- [ ] **TBD** Support for circular references\n- [ ] **TBD** Binary representation [branch](https://github.com/discoveryjs/json-ext/tree/binary)\n- [ ] **TBD** WHATWG [Streams](https://streams.spec.whatwg.org/) support\n\n## Install\n\n```bash\nnpm install @discoveryjs/json-ext\n```\n\n## API\n\n- [parseChunked(chunkEmitter)](#parsechunkedchunkemitter)\n- [stringifyStream(value[, replacer[, space]])](#stringifystreamvalue-replacer-space)\n- [stringifyInfo(value[, replacer[, space[, options]]])](#stringifyinfovalue-replacer-space-options)\n    - [Options](#options)\n        - [async](#async)\n        - [continueOnCircular](#continueoncircular)\n- [version](#version)\n\n### parseChunked(chunkEmitter)\n\nWorks the same as [`JSON.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) but takes `chunkEmitter` instead of string and returns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n\n> NOTE: `reviver` parameter is not supported yet, but will be added in next releases.\n> NOTE: WHATWG streams aren't supported yet\n\nWhen to use:\n- It's required to avoid freezing the main thread during big JSON parsing, since this process can be distributed in time\n- Huge JSON needs to be parsed (e.g. >500MB on Node.js)\n- Needed to reduce memory pressure. `JSON.parse()` needs to receive the entire JSON before parsing it. With `parseChunked()` you may parse JSON as first bytes of it comes. This approach helps to avoid storing a huge string in the memory at a single time point and following GC.\n\n[Benchmark](https://github.com/discoveryjs/json-ext/tree/master/benchmarks#parse-chunked)\n\nUsage:\n\n```js\nconst { parseChunked } = require('@discoveryjs/json-ext');\n\n// as a regular Promise\nparseChunked(chunkEmitter)\n    .then(data => {\n        /* data is parsed JSON */\n    });\n\n// using await (keep in mind that not every runtime has a support for top level await)\nconst data = await parseChunked(chunkEmitter);\n```\n\nParameter `chunkEmitter` can be:\n- [`ReadableStream`](https://nodejs.org/dist/latest-v14.x/docs/api/stream.html#stream_readable_streams) (Node.js only)\n```js\nconst fs = require('fs');\nconst { parseChunked } = require('@discoveryjs/json-ext');\n\nparseChunked(fs.createReadStream('path/to/file.json'))\n```\n- Generator, async generator or function that returns iterable (chunks). Chunk might be a `string`, `Uint8Array` or `Buffer` (Node.js only):\n```js\nconst { parseChunked } = require('@discoveryjs/json-ext');\nconst encoder = new TextEncoder();\n\n// generator\nparseChunked(function*() {\n    yield '{ \"hello\":';\n    yield Buffer.from(' \"wor');    // Node.js only\n    yield encoder.encode('ld\" }'); // returns Uint8Array(5) [ 108, 100, 34, 32, 125 ]\n});\n\n// async generator\nparseChunked(async function*() {\n    for await (const chunk of someAsyncSource) {\n        yield chunk;\n    }\n});\n\n// function that returns iterable\nparseChunked(() => ['{ \"hello\":', ' \"world\"}'])\n```\n\nUsing with [fetch()](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API):\n\n```js\nasync function loadData(url) {\n    const response = await fetch(url);\n    const reader = response.body.getReader();\n\n    return parseChunked(async function*() {\n        while (true) {\n            const { done, value } = await reader.read();\n\n            if (done) {\n                break;\n            }\n\n            yield value;\n        }\n    });\n}\n\nloadData('https://example.com/data.json')\n    .then(data => {\n        /* data is parsed JSON */\n    })\n```\n\n### stringifyStream(value[, replacer[, space]])\n\nWorks the same as [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify), but returns an instance of [`ReadableStream`](https://nodejs.org/dist/latest-v14.x/docs/api/stream.html#stream_readable_streams) instead of string.\n\n> NOTE: WHATWG Streams aren't supported yet, so function available for Node.js only for now\n\nDeparts from JSON.stringify():\n- Outputs `null` when `JSON.stringify()` returns `undefined` (since streams may not emit `undefined`)\n- A promise is resolving and the resulting value is stringifying as a regular one\n- A stream in non-object mode is piping to output as is\n- A stream in object mode is piping to output as an array of objects\n\nWhen to use:\n- Huge JSON needs to be generated (e.g. >500MB on Node.js)\n- Needed to reduce memory pressure. `JSON.stringify()` needs to generate the entire JSON before send or write it to somewhere. With `stringifyStream()` you may send a result to somewhere as first bytes of the result appears. This approach helps to avoid storing a huge string in the memory at a single time point.\n- The object being serialized contains Promises or Streams (see Usage for examples)\n\n[Benchmark](https://github.com/discoveryjs/json-ext/tree/master/benchmarks#stream-stringifying)\n\nUsage:\n\n```js\nconst { stringifyStream } = require('@discoveryjs/json-ext');\n\n// handle events\nstringifyStream(data)\n    .on('data', chunk => console.log(chunk))\n    .on('error', error => consold.error(error))\n    .on('finish', () => console.log('DONE!'));\n\n// pipe into a stream\nstringifyStream(data)\n    .pipe(writableStream);\n```\n\nUsing Promise or ReadableStream in serializing object:\n\n```js\nconst fs = require('fs');\nconst { stringifyStream } = require('@discoveryjs/json-ext');\n\n// output will be\n// {\"name\":\"example\",\"willSerializeResolvedValue\":42,\"fromFile\":[1, 2, 3],\"at\":{\"any\":{\"level\":\"promise!\"}}}\nstringifyStream({\n    name: 'example',\n    willSerializeResolvedValue: Promise.resolve(42),\n    fromFile: fs.createReadStream('path/to/file.json'), // support file content is \"[1, 2, 3]\", it'll be inserted as it\n    at: {\n        any: {\n            level: new Promise(resolve => setTimeout(() => resolve('promise!'), 100))\n        }\n    }\n})\n\n// in case several async requests are used in object, it's prefered\n// to put fastest requests first, because in this case\nstringifyStream({\n    foo: fetch('http://example.com/request_takes_2s').then(req => req.json()),\n    bar: fetch('http://example.com/request_takes_5s').then(req => req.json())\n});\n```\n\nUsing with [`WritableStream`](https://nodejs.org/dist/latest-v14.x/docs/api/stream.html#stream_writable_streams) (Node.js only):\n\n```js\nconst fs = require('fs');\nconst { stringifyStream } = require('@discoveryjs/json-ext');\n\n// pipe into a console\nstringifyStream(data)\n    .pipe(process.stdout);\n\n// pipe into a file\nstringifyStream(data)\n    .pipe(fs.createWriteStream('path/to/file.json'));\n\n// wrapping into a Promise\nnew Promise((resolve, reject) => {\n    stringifyStream(data)\n        .on('error', reject)\n        .pipe(stream)\n        .on('error', reject)\n        .on('finish', resolve);\n});\n```\n\n### stringifyInfo(value[, replacer[, space[, options]]])\n\n`value`, `replacer` and `space` arguments are the same as for `JSON.stringify()`.\n\nResult is an object:\n\n```js\n{\n    minLength: Number,  // minimal bytes when values is stringified\n    circular: [...],    // list of circular references\n    duplicate: [...],   // list of objects that occur more than once\n    async: [...]        // list of async values, i.e. promises and streams\n}\n```\n\nExample:\n\n```js\nconst { stringifyInfo } = require('@discoveryjs/json-ext');\n\nconsole.log(\n    stringifyInfo({ test: true }).minLength\n);\n// > 13\n// that equals '{\"test\":true}'.length\n```\n\n#### Options\n\n##### async\n\nType: `Boolean`  \nDefault: `false`\n\nCollect async values (promises and streams) or not.\n\n##### continueOnCircular\n\nType: `Boolean`  \nDefault: `false`\n\nStop collecting info for a value or not whenever circular reference is found. Setting option to `true` allows to find all circular references.\n\n### version\n\nThe version of library, e.g. `\"0.3.1\"`.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/discoveryjs/json-ext#readme","bugs":{"url":"https://github.com/discoveryjs/json-ext/issues"},"license":"MIT"}