{"_id":"destr","_rev":"3825230","name":"destr","description":"A faster, secure and convenient alternative for JSON.parse","dist-tags":{"latest":"2.0.5"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"time":{"modified":"2025-08-26T22:17:32.000Z","created":"2020-05-20T11:26:03.142Z","2.0.5":"2025-04-03T16:41:15.624Z","2.0.4":"2025-04-03T12:51:55.147Z","2.0.3":"2024-02-20T09:44:41.871Z","2.0.2":"2023-10-24T21:34:04.698Z","2.0.1":"2023-08-02T22:03:30.502Z","2.0.0":"2023-06-12T12:45:11.792Z","1.2.2":"2022-12-05T11:57:19.195Z","1.2.1":"2022-11-14T16:09:10.014Z","1.2.0":"2022-10-19T10:00:32.218Z","1.1.1":"2022-04-07T12:35:42.656Z","1.1.0":"2021-01-21T02:29:10.995Z","1.0.1":"2020-11-08T10:24:45.624Z","1.0.0":"2020-06-16T12:16:48.176Z","0.1.9":"2020-05-28T12:18:41.978Z","0.1.8":"2020-05-28T11:56:42.065Z","0.1.7":"2020-05-27T09:46:09.387Z","0.1.6":"2020-05-27T09:42:06.325Z","0.1.5":"2020-05-27T09:39:31.754Z","0.1.4":"2020-05-22T10:50:59.789Z","0.1.3":"2020-05-20T21:17:56.307Z","0.1.2":"2020-05-20T20:49:10.551Z","0.1.1":"2020-05-20T17:26:33.243Z","0.1.0":"2020-05-20T13:30:15.266Z","0.0.0":"2020-05-20T11:26:03.142Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"versions":{"2.0.5":{"name":"destr","version":"2.0.5","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./lib/index.cjs"}},"main":"./lib/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"bench:bun":"pnpm build && bun --bun ./test/bench.mjs","bench:node":"pnpm build && node ./test/bench.mjs","build":"unbuild","dev":"vitest dev","lint":"eslint . && prettier -c src test","lint:fix":"eslint . --fix && prettier -w src test","release":"pnpm test && pnpm build && changelogen --release --push && npm publish","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-v8":"^3.1.1","changelogen":"^0.6.1","eslint":"^9.23.0","eslint-config-unjs":"^0.4.2","mitata":"^1.0.34","prettier":"^3.5.3","secure-json-parse":"^4.0.0","typescript":"^5.8.2","unbuild":"~3.4","vitest":"^3.1.1"},"packageManager":"pnpm@10.7.1","_id":"destr@2.0.5","gitHead":"7bb3c39ef5f8c84219be08ebc11b3c4f4a4c828f","bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"7d112ff1b925fb8d2079fac5bdb4a90973b51fdb","size":3807,"noattachment":false,"key":"/destr/-/destr-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-2.0.5.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/destr_2.0.5_1743698475442_0.8823194809253956"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-03T16:41:15.624Z","publish_time":1743698475624,"_source_registry_name":"default","_cnpm_publish_time":1743698475624},"2.0.4":{"name":"destr","version":"2.0.4","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./lib/index.cjs"}},"main":"./lib/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"bench:bun":"pnpm build && bun --bun ./test/bench.mjs","bench:node":"pnpm build && node ./test/bench.mjs","build":"unbuild","dev":"vitest dev","lint":"eslint . && prettier -c src test","lint:fix":"eslint . --fix && prettier -w src test","release":"pnpm test && pnpm build && changelogen --release --push && npm publish","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-v8":"^3.1.1","changelogen":"^0.6.1","eslint":"^9.23.0","eslint-config-unjs":"^0.4.2","mitata":"^1.0.34","prettier":"^3.5.3","secure-json-parse":"^4.0.0","typescript":"^5.8.2","unbuild":"^3.5.0","vitest":"^3.1.1"},"packageManager":"pnpm@10.7.1","_id":"destr@2.0.4","gitHead":"edf4a84249c531d3b09bea232cf0c0cd5f74ce88","bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"019388c4b9c455503b62b331c9bc655a10294f7c","size":3823,"noattachment":false,"key":"/destr/-/destr-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-2.0.4.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/destr_2.0.4_1743684714957_0.854648381002356"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-03T12:51:55.147Z","publish_time":1743684715147,"_source_registry_name":"default","_cnpm_publish_time":1743684715147},"2.0.3":{"name":"destr","version":"2.0.3","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./lib/index.cjs"}},"main":"./lib/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"bench:bun":"pnpm build && bun --bun ./test/bench.mjs","bench:node":"pnpm build && node ./test/bench.mjs","build":"unbuild","dev":"vitest dev","lint":"eslint --ext .ts . && prettier -c src test","lint:fix":"eslint --ext .ts . --fix && prettier -w src test","release":"pnpm test && pnpm build && changelogen --release --push && npm publish","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-v8":"^1.3.0","changelogen":"^0.5.5","eslint":"^8.56.0","eslint-config-unjs":"^0.2.1","mitata":"^0.1.11","prettier":"^3.2.5","secure-json-parse":"^2.7.0","typescript":"^5.3.3","unbuild":"^2.0.0","vitest":"^1.3.0"},"packageManager":"pnpm@8.15.3","_id":"destr@2.0.3","gitHead":"13c1d8751b472545bd3c578af5b6d0fc8e258d0b","bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"shasum":"7f9e97cb3d16dbdca7be52aca1644ce402cfe449","size":3832,"noattachment":false,"key":"/destr/-/destr-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-2.0.3.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_2.0.3_1708422281724_0.8368322678088806"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-20T09:44:41.871Z","publish_time":1708422281871,"_source_registry_name":"default","_cnpm_publish_time":1708422281871},"2.0.2":{"name":"destr","version":"2.0.2","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./lib/index.cjs"}},"main":"./lib/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"bench:bun":"pnpm build && bun --bun ./bench.mjs","bench:node":"pnpm build && node ./bench.mjs","build":"unbuild","dev":"vitest dev","lint":"eslint --ext .ts . && prettier -c src test","lint:fix":"eslint --ext .ts . --fix && prettier -w src test","release":"pnpm test && pnpm build && changelogen --release --push && npm publish","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-v8":"^0.34.6","benchmark":"^2.1.4","changelogen":"^0.5.5","eslint":"^8.52.0","eslint-config-unjs":"^0.2.1","prettier":"^3.0.3","secure-json-parse":"^2.7.0","typescript":"^5.2.2","unbuild":"^2.0.0","vitest":"^0.34.6"},"packageManager":"pnpm@8.9.2","gitHead":"2ed1ba538ac4a6fd92d3bd3183f649ce139f2a42","bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_id":"destr@2.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"8d3c0ee4ec0a76df54bc8b819bca215592a8c218","size":3769,"noattachment":false,"key":"/destr/-/destr-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-2.0.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_2.0.2_1698183244474_0.023763064233375486"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-24T21:34:04.698Z","publish_time":1698183244698,"_source_registry_name":"default","_cnpm_publish_time":1698183244698},"2.0.1":{"name":"destr","version":"2.0.1","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./lib/index.cjs"}},"main":"./lib/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"bench":"pnpm build && node ./bench.mjs","build":"unbuild","dev":"vitest dev","lint":"eslint --ext .ts . && prettier -c src test","lint:fix":"eslint --ext .ts . --fix && prettier -w src test","release":"pnpm test && pnpm build && changelogen --release --push && npm publish","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-v8":"^0.34.1","benchmark":"^2.1.4","changelogen":"^0.5.4","eslint":"^8.46.0","eslint-config-unjs":"^0.2.1","prettier":"^3.0.0","secure-json-parse":"^2.7.0","typescript":"^5.1.6","unbuild":"^1.2.1","vitest":"^0.34.1"},"packageManager":"pnpm@8.6.9","gitHead":"ff5f3310cd60d2e9aa34da9d61f8b39c62a34b11","bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_id":"destr@2.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"2fc7bddc256fed1183e03f8d148391dde4023cb2","size":4157,"noattachment":false,"key":"/destr/-/destr-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-2.0.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_2.0.1_1691013810346_0.9002152017328819"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-02T22:03:30.502Z","publish_time":1691013810502,"_source_registry_name":"default","_cnpm_publish_time":1691013810502},"2.0.0":{"name":"destr","version":"2.0.0","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./lib/index.cjs"}},"main":"./lib/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"bench":"pnpm build && node ./bench.mjs","build":"unbuild","dev":"vitest dev","lint":"eslint --ext .ts . && prettier -c src test","lint:fix":"eslint --ext .ts . --fix && prettier -w src test","release":"pnpm test && pnpm build && changelogen --release --push && npm publish","test":"pnpm lint && vitest run --coverage"},"devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-v8":"^0.32.0","benchmark":"^2.1.4","changelogen":"^0.5.3","eslint":"^8.42.0","eslint-config-unjs":"^0.2.1","prettier":"^2.8.8","secure-json-parse":"^2.7.0","typescript":"^5.1.3","unbuild":"^1.2.1","vitest":"^0.32.0"},"packageManager":"pnpm@8.6.2","gitHead":"02d24f384e5d56958a86bf87e4a3785d6ff7a32b","bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_id":"destr@2.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"shasum":"60847d02b211de6e252fc72806f4ec39ec257e7b","size":4148,"noattachment":false,"key":"/destr/-/destr-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-2.0.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_2.0.0_1686573911555_0.2698976296521247"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-12T12:45:11.792Z","publish_time":1686573911792,"_source_registry_name":"default","_cnpm_publish_time":1686573911792},"1.2.2":{"name":"destr","version":"1.2.2","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","devDependencies":{"@hapi/bourne":"^3.0.0","@vitest/coverage-c8":"^0.25.3","benchmark":"^2.1.4","eslint":"^8.29.0","eslint-config-unjs":"^0.0.2","secure-json-parse":"^2.6.0","standard-version":"^9.5.0","typescript":"^4.9.3","unbuild":"^1.0.1","vitest":"^0.25.3"},"packageManager":"pnpm@7.18.0","scripts":{"bench":"pnpm build && node ./bench.cjs","build":"unbuild","dev":"vitest dev","lint":"eslint --ext .ts .","release":"pnpm test && pnpm build && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint && vitest run --coverage"},"bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_id":"destr@1.2.2","_integrity":"sha512-lrbCJwD9saUQrqUfXvl6qoM+QN3W7tLV5pAOs+OqOmopCCz/JkE05MHedJR1xfk4IAnZuJXPVuN5+7jNA2ZCiA==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/575fa31d1c7e668b95251e8ac43b93c1/destr-1.2.2.tgz","_from":"file:destr-1.2.2.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"shasum":"7ba9befcafb645a50e76b260449c63927b51e22f","size":3650,"noattachment":false,"key":"/destr/-/destr-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.2.2.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.2.2_1670241439044_0.43569376411221095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-05T11:58:38.593Z","publish_time":1670241439195,"_cnpm_publish_time":1670241439195},"1.2.1":{"name":"destr","version":"1.2.1","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","devDependencies":{"@hapi/bourne":"^3.0.0","benchmark":"^2.1.4","eslint":"^8.27.0","eslint-config-unjs":"^0.0.2","secure-json-parse":"^2.5.0","standard-version":"^9.5.0","typescript":"^4.8.4","unbuild":"^0.9.4"},"packageManager":"pnpm@7.16.0","scripts":{"bench":"pnpm build && node ./bench.cjs","build":"unbuild","lint":"eslint --ext .ts .","release":"pnpm test && pnpm build && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint"},"bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_id":"destr@1.2.1","_integrity":"sha512-ud8w0qMLlci6iFG7CNgeRr8OcbUWMsbfjtWft1eJ5Luqrz/M8Ebqk/KCzne8rKUlIQWWfLv0wD6QHrqOf4GshA==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/539d3f9a593d7fc8187180cd72a6b8e8/destr-1.2.1.tgz","_from":"file:destr-1.2.1.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"shasum":"03f2e7cbcd01f9190938d05718948de9d7dfb71a","size":3569,"noattachment":false,"key":"/destr/-/destr-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.2.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.2.1_1668442149858_0.9381636566602989"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-14T16:26:10.682Z","publish_time":1668442150014,"_cnpm_publish_time":1668442150014},"1.2.0":{"name":"destr","version":"1.2.0","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/unjs/destr.git"},"license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","devDependencies":{"@hapi/bourne":"^3.0.0","@nuxtjs/eslint-config-typescript":"^11.0.0","benchmark":"^2.1.4","eslint":"^8.25.0","secure-json-parse":"^2.5.0","standard-version":"^9.5.0","typescript":"^4.8.4","unbuild":"^0.9.4"},"packageManager":"pnpm@6.34.0","scripts":{"bench":"pnpm build && node ./bench.cjs","build":"unbuild","lint":"eslint --ext .ts .","release":"pnpm test && pnpm build && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint"},"bugs":{"url":"https://github.com/unjs/destr/issues"},"homepage":"https://github.com/unjs/destr#readme","_id":"destr@1.2.0","_integrity":"sha512-JG+cG4ZPB1L27sl2C2URg8MIOmIUtTbE5wEx02BpmrTCqg/hXxFKXsYsnODl5PdpqNRaS1KQGUQ56V8jk8XpYQ==","_resolved":"/private/var/folders/s0/k4lcb4b50bj9r4fch4_1h_l40000gn/T/67a304afd4ef6b8d7477f9905107ed44/destr-1.2.0.tgz","_from":"file:destr-1.2.0.tgz","_nodeVersion":"18.11.0","_npmVersion":"8.19.2","dist":{"shasum":"8adb17fa3861b8032ea1bba92f60ba989a9ff119","size":4037,"noattachment":false,"key":"/destr/-/destr-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.2.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.2.0_1666173632049_0.24924572352125285"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-22T14:30:28.612Z","publish_time":1666173632218,"_cnpm_publish_time":1666173632218},"1.1.1":{"name":"destr","version":"1.1.1","description":"A faster, secure and convenient alternative for JSON.parse","repository":"unjs/destr","license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","type":"module","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"types":"dist/index.d.ts","devDependencies":{"@hapi/bourne":"latest","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"latest","standard-version":"latest","typescript":"latest","unbuild":"latest"},"packageManager":"pnpm@6.32.3","scripts":{"bench":"pnpm build && node ./bench.cjs","build":"unbuild","lint":"eslint --ext .ts .","release":"pnpm test && pnpm build && standard-version && git push --follow-tags && pnpm publish","test":"pnpm lint"},"_id":"destr@1.1.1","_integrity":"sha512-QqkneF8LrYmwATMdnuD2MLI3GHQIcBnG6qFC2q9bSH430VTCDAVjcspPmUaKhPGtAtPAftIUFqY1obQYQuwmbg==","_resolved":"/home/pooya/Code/destr/destr-1.1.1.tgz","_from":"file:destr-1.1.1.tgz","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"910457d10a2f2f247add4ca4fdb4a03adcc49079","size":3301,"noattachment":false,"key":"/destr/-/destr-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.1.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.1.1_1649334942529_0.8622666785521182"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-07T15:52:44.856Z","publish_time":1649334942656,"_cnpm_publish_time":1649334942656},"1.1.0":{"name":"destr","version":"1.1.0","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"siroc build","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"latest","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"latest","siroc":"latest","standard-version":"latest","typescript":"latest"},"gitHead":"c816ad73fe40d0b4929f8d8b0d054fc215ea5c70","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@1.1.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"2da6add6ba71e04fd0abfb1e642d4f6763235095","size":3686,"noattachment":false,"key":"/destr/-/destr-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.1.0.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.1.0_1611196150863_0.31490336426946075"},"_hasShrinkwrap":false,"publish_time":1611196150995,"_cnpm_publish_time":1611196150995},"1.0.1":{"name":"destr","version":"1.0.1","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"aec3555f8f2cd442f3038711944320e823d3fe5e","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@1.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"d13db7f9d9c9ca4fcf24e86343d601217136ddc3","size":3582,"noattachment":false,"key":"/destr/-/destr-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.0.1.tgz"},"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.0.1_1604831085486_0.4750461842258764"},"_hasShrinkwrap":false,"publish_time":1604831085624,"_cnpm_publish_time":1604831085624},"1.0.0":{"name":"destr","version":"1.0.0","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"74bda8b2aa57301fb9ae83b49be08a57ae097465","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"shasum":"c445ef0baaf3e51a6d08551d453d6f73fbda2dc6","size":3492,"noattachment":false,"key":"/destr/-/destr-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-1.0.0.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_1.0.0_1592309808056_0.8442165079262327"},"_hasShrinkwrap":false,"publish_time":1592309808176,"_cnpm_publish_time":1592309808176},"0.1.9":{"name":"destr","version":"0.1.9","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"bf710ed9042500ce03f20a509d8167c312a9fd18","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.9","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"dcba2eece57db00dec5292c9c61dc104bff384f8","size":3480,"noattachment":false,"key":"/destr/-/destr-0.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.9.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.9_1590668321839_0.1016817793831748"},"_hasShrinkwrap":false,"publish_time":1590668321978,"_cnpm_publish_time":1590668321978},"0.1.8":{"name":"destr","version":"0.1.8","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"37055786fe10914bf74643d7ffa0fedbca2440d6","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.8","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"208f0332380d3f1ebf3ba0a29d1603c9b47884cd","size":3413,"noattachment":false,"key":"/destr/-/destr-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.8.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.8_1590667001934_0.2512981699190229"},"_hasShrinkwrap":false,"publish_time":1590667002065,"_cnpm_publish_time":1590667002065},"0.1.7":{"name":"destr","version":"0.1.7","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"5411e712e3197aaa03da018a4870c3ed208eb6cb","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.7","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"630dcd9b78407759955a93b9536a76d4ab9510fc","size":3491,"noattachment":false,"key":"/destr/-/destr-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.7.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.7_1590572769237_0.18428913732004593"},"_hasShrinkwrap":false,"publish_time":1590572769387,"_cnpm_publish_time":1590572769387},"0.1.6":{"name":"destr","version":"0.1.6","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"c838f25a43e9ffe914d7680d3def6d4d3e712e7e","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.6","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"e5a4108a48baab0e99f1002a8a94182f0ed67145","size":3391,"noattachment":false,"key":"/destr/-/destr-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.6.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.6_1590572526208_0.166183863992595"},"_hasShrinkwrap":false,"publish_time":1590572526325,"_cnpm_publish_time":1590572526325},"0.1.5":{"name":"destr","version":"0.1.5","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"03d75e6d9cb6043411af346453e67e9f871a91c1","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.5","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"d32f1c6551413c66dd593b38e4538d60a4560082","size":3386,"noattachment":false,"key":"/destr/-/destr-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.5.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.5_1590572371619_0.49264036789770516"},"_hasShrinkwrap":false,"publish_time":1590572371754,"_cnpm_publish_time":1590572371754},"0.1.4":{"name":"destr","version":"0.1.4","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@hapi/bourne":"^2.0.0","@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"7bc70cfdb9d0818f81cd60c18c898fed70f570fe","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.4","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"5ade43c2c02ffa7ad80e4d1516db309158d03d90","size":3296,"noattachment":false,"key":"/destr/-/destr-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.4.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.4_1590144659649_0.08213685206869847"},"_hasShrinkwrap":false,"publish_time":1590144659789,"_cnpm_publish_time":1590144659789},"0.1.3":{"name":"destr","version":"0.1.3","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","secure-json-parse":"^2.1.0","standard-version":"latest","typescript":"latest"},"gitHead":"796bb3f6f396c6ea4e6b0f8359fe96f7408cff02","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.3","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"338b783d6d86ea40a16d19971b80f2439e3664cf","size":3278,"noattachment":false,"key":"/destr/-/destr-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.3.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.3_1590009476204_0.5196416856702348"},"_hasShrinkwrap":false,"publish_time":1590009476307,"_cnpm_publish_time":1590009476307},"0.1.2":{"name":"destr","version":"0.1.2","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","standard-version":"latest","typescript":"latest"},"gitHead":"70a54a3d23bcba5cb47bdd08665461a9ce94e0bc","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"1b6c903c21864fda3ef2400853d655df8154b4e5","size":3269,"noattachment":false,"key":"/destr/-/destr-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.2.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.2_1590007750406_0.7155881420346315"},"_hasShrinkwrap":false,"publish_time":1590007750551,"_cnpm_publish_time":1590007750551},"0.1.1":{"name":"destr","version":"0.1.1","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","rollup-plugin-typescript2":"latest","standard-version":"latest","typescript":"latest"},"gitHead":"ad411eb3b0c3d5b0bb45f3303461999689d998f7","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"56e59f8c2a9a1e5cd09f71e4b0d0d18a97ad910d","size":3086,"noattachment":false,"key":"/destr/-/destr-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.1.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.1_1589995593093_0.7089849718186509"},"_hasShrinkwrap":false,"publish_time":1589995593243,"_cnpm_publish_time":1589995593243},"0.1.0":{"name":"destr","version":"0.1.0","description":"A faster, secure and convenient alternative for JSON.parse","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","lint":"eslint --ext .ts .","test":"yarn lint","build":"bili src/index.ts","release":"release-it"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","benchmark":"latest","bili":"latest","eslint":"latest","release-it":"latest","rollup-plugin-typescript2":"latest","typescript":"latest"},"gitHead":"e2ef84111d69f61fdca1249a4c96049a015bcbb0","bugs":{"url":"https://github.com/nuxt-contrib/destr/issues"},"homepage":"https://github.com/nuxt-contrib/destr#readme","_id":"destr@0.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"dist":{"shasum":"b565abdbaa7c9f41e9344fc1bf38989c62fa30b7","size":2923,"noattachment":false,"key":"/destr/-/destr-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.1.0.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.1.0_1589981415153_0.12462791627646808"},"_hasShrinkwrap":false,"publish_time":1589981415266,"_cnpm_publish_time":1589981415266},"0.0.0":{"name":"destr","version":"0.0.0","description":"A faster, secure and convenient alternative for [`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse):","repository":{"type":"git","url":"git+https://github.com/nuxt-community/destr.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"bench":"yarn build && node ./bench.js","build":"bili src/index.ts"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","benchmark":"^2.1.4","bili":"^4.10.0","rollup-plugin-typescript2":"^0.27.1","typescript":"latest"},"bugs":{"url":"https://github.com/nuxt-community/destr/issues"},"homepage":"https://github.com/nuxt-community/destr#readme","_id":"destr@0.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"0a0444aaef3f98d125a55decea43e43fe87e487a","size":2203,"noattachment":false,"key":"/destr/-/destr-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/destr/download/destr-0.0.0.tgz"},"maintainers":[{"name":"pi0","email":"pooya@pi0.ir"}],"_npmUser":{"name":"pi0","email":"pyapar@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/destr_0.0.0_1589973963030_0.25856366537613207"},"_hasShrinkwrap":false,"publish_time":1589973963142,"_cnpm_publish_time":1589973963142}},"readme":"# destr\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![bundle][bundle-src]][bundle-href]\n[![License][license-src]][license-href]\n\nA faster, secure and convenient alternative for [`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse).\n\n## Usage\n\n### Node.js\n\nInstall dependency:\n\n```bash\n# npm\nnpm i destr\n\n# yarn\nyarn add destr\n\n# pnpm\npnpm i destr\n```\n\nImport into your Node.js project:\n\n```js\n// ESM\nimport { destr, safeDestr } from \"destr\";\n\n// CommonJS\nconst { destr, safeDestr } = require(\"destr\");\n```\n\n### Deno\n\n```js\nimport { destr, safeDestr } from \"https://deno.land/x/destr/src/index.ts\";\n\nconsole.log(destr('{ \"deno\": \"yay\" }'));\n```\n\n## Why?\n\n### ✅ Type Safe\n\n```ts\nconst obj = JSON.parse(\"{}\"); // obj type is any\n\nconst obj = destr(\"{}\"); // obj type is unknown by default\n\nconst obj = destr<MyInterface>(\"{}\"); // obj is well-typed\n```\n\n### ✅ Fast fallback to input if is not string\n\n```js\n// Uncaught SyntaxError: Unexpected token u in JSON at position 0\nJSON.parse();\n\n// undefined\ndestr();\n```\n\n### ✅ Fast lookup for known string values\n\n```js\n// Uncaught SyntaxError: Unexpected token T in JSON at position 0\nJSON.parse(\"TRUE\");\n\n// true\ndestr(\"TRUE\");\n```\n\n### ✅ Fallback to original value if parse fails (empty or any plain string)\n\n```js\n// Uncaught SyntaxError: Unexpected token s in JSON at position 0\nJSON.parse(\"salam\");\n\n// \"salam\"\ndestr(\"salam\");\n```\n\n**Note:** This fails in safe/strict mode with `safeDestr`.\n\n### ✅ Avoid prototype pollution\n\n```js\nconst input = '{ \"user\": { \"__proto__\": { \"isAdmin\": true } } }';\n\n// { user: { __proto__: { isAdmin: true } } }\nJSON.parse(input);\n\n// { user: {} }\ndestr(input);\n```\n\n### ✅ Strict Mode\n\nWhen using `safeDestr` it will throw an error if the input is not a valid JSON string or parsing fails. (non string values and built-ins will be still returned as-is)\n\n```js\n// Returns \"[foo\"\ndestr(\"[foo\");\n\n// Throws an error\nsafeDestr(\"[foo\");\n```\n\n## Benchmarks\n\n`destr` is faster generally for arbitrary inputs but also sometimes little bit slower than `JSON.parse` when parsing a valid JSON string mainly because of transform to avoid [prototype pollution](https://learn.snyk.io/lessons/prototype-pollution/javascript/) which can lead to serious security issues if not being sanitized. In the other words, `destr` is better when input is not always a JSON string or from untrusted source like request body.\n\nCheck [Benchmark Results](./BENCH.md) or run with `pnpm run bench:node` or `pnpm run bench:bun` yourself!\n\n## License\n\nMIT. Made with ????\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/destr?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-version-href]: https://npmjs.com/package/destr\n[npm-downloads-src]: https://img.shields.io/npm/dm/destr?style=flat&colorA=18181B&colorB=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/destr\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/destr?style=flat&colorA=18181B&colorB=F0DB4F\n[bundle-href]: https://bundlephobia.com/result?p=destr\n[license-src]: https://img.shields.io/github/license/unjs/destr.svg?style=flat&colorA=18181B&colorB=F0DB4F\n[license-href]: https://github.com/unjs/destr/blob/main/LICENSE\n","_attachments":{},"homepage":"https://github.com/unjs/destr#readme","bugs":{"url":"https://github.com/unjs/destr/issues"},"license":"MIT"}