{"_id":"@atlaschain/fast-stable-stringify","name":"@atlaschain/fast-stable-stringify","dist-tags":{"latest":"3.0.0"},"versions":{"3.0.0":{"name":"@atlaschain/fast-stable-stringify","version":"3.0.0","description":"Deterministic stringification for when performance and bundle size matters","exports":{"edge-light":{"import":"./dist/index.node.mjs","require":"./dist/index.node.cjs"},"workerd":{"import":"./dist/index.node.mjs","require":"./dist/index.node.cjs"},"browser":{"import":"./dist/index.browser.mjs","require":"./dist/index.browser.cjs"},"node":{"import":"./dist/index.node.mjs","require":"./dist/index.node.cjs"},"react-native":"./dist/index.native.mjs","types":"./dist/types/index.d.ts"},"browser":{"./dist/index.node.cjs":"./dist/index.browser.cjs","./dist/index.node.mjs":"./dist/index.browser.mjs"},"main":"./dist/index.node.cjs","module":"./dist/index.node.mjs","react-native":"./dist/index.native.mjs","types":"./dist/types/index.d.ts","type":"commonjs","sideEffects":false,"keywords":["JSON","stable","deterministic","stringify","fast","BigInt"],"scripts":{"compile:js":"tsup --config build-scripts/tsup.config.package.ts","compile:typedefs":"tsc -p ./tsconfig.declarations.json","dev":"jest -c ../../node_modules/@atlas/test-config/jest-dev.config.ts --rootDir . --watch","prepublishOnly":"pnpm pkg delete devDependencies","publish-impl":"npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || (pnpm publish --tag ${PUBLISH_TAG:-canary} --access public --no-git-checks && (([ -n \"${GITHUB_OUTPUT:-}\" ] && echo 'published=true' >> \"$GITHUB_OUTPUT\") || true) && (([ \"$PUBLISH_TAG\" != \"canary\" ] && ../build-scripts/maybe-tag-latest.ts $npm_package_name@$npm_package_version) || true))","publish-packages":"pnpm prepublishOnly && pnpm publish-impl","style:fix":"pnpm eslint --fix src && pnpm prettier --log-level warn --ignore-unknown --write ./*","test:lint":"TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@atlas/test-config/jest-lint.config.ts --rootDir . --silent","test:prettier":"TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@atlas/test-config/jest-prettier.config.ts --rootDir . --silent","test:treeshakability:browser":"agadoo dist/index.browser.mjs","test:treeshakability:native":"agadoo dist/index.native.mjs","test:treeshakability:node":"agadoo dist/index.node.mjs","test:typecheck":"tsc --noEmit","test:unit:browser":"TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@atlas/test-config/jest-unit.config.browser.ts --rootDir . --silent","test:unit:node":"TERM_OVERRIDE=\"${TURBO_HASH:+dumb}\" TERM=${TERM_OVERRIDE:-$TERM} jest -c ../../node_modules/@atlas/test-config/jest-unit.config.node.ts --rootDir . --silent"},"author":{"name":"Atlas Chain Foundation"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anza-xyz/kit.git"},"bugs":{"url":"https://github.com/anza-xyz/kit/issues"},"browserslist":["supports bigint and not dead","maintained node versions"],"peerDependencies":{"typescript":">=5.3.3"},"engines":{"node":">=20.18.0"},"_id":"@atlaschain/fast-stable-stringify@3.0.0","homepage":"https://github.com/anza-xyz/kit#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-CYS6IrL0e8lJ2tmzBQ3kueKgVvxldyjGHIY9ubsmvo4aAPv6AdDGABMDpXtQzc6KusJjLoLumQZWhkA9CERZDw==","shasum":"e3e81d42594b99cb8d98e04e5ae0d2da3e778043","tarball":"https://registry.npmjs.org/@atlaschain/fast-stable-stringify/-/fast-stable-stringify-3.0.0.tgz","fileCount":5,"unpackedSize":8254,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGg4xDO4PH64aqp8S7MgZrbIiyeejoPCzBiXgfmLAnDOAiAXkiVDVFW+g3hdiUs6w/MlEi9bh6L8Wv5tJ2GpFsj+fQ=="}]},"_npmUser":{"name":"atlaschain","email":"jq@atlaschain.org"},"directories":{},"maintainers":[{"name":"atlaschain","email":"jq@atlaschain.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fast-stable-stringify_3.0.0_1756885042006_0.40356539008256753"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-03T07:37:21.902Z","3.0.0":"2025-09-03T07:37:22.192Z","modified":"2025-09-03T07:37:22.993Z"},"maintainers":[{"name":"atlaschain","email":"jq@atlaschain.org"}],"description":"Deterministic stringification for when performance and bundle size matters","homepage":"https://github.com/anza-xyz/kit#readme","keywords":["JSON","stable","deterministic","stringify","fast","BigInt"],"repository":{"type":"git","url":"git+https://github.com/anza-xyz/kit.git"},"author":{"name":"Atlas Chain Foundation"},"bugs":{"url":"https://github.com/anza-xyz/kit/issues"},"license":"MIT","readme":"# fast-stable-stringify\n\nThis project is a fork of [nickyout/fast-stable-stringify](https://github.com/nickyout/fast-stable-stringify)\n\nThe most popular repository providing this feature is [substack's json-stable-stringify](https://www.npmjs.com/package/json-stable-stringify). The intent of this library is to provide a faster alternative for when performance is more important than features. It assumes you provide basic javascript values without circular references, and returns a non-indented string.\n\nUsage:\n\n```javascript\nimport stringify from '@atlas/fast-stable-stringify';\nstringify({ d: 0, c: 1, a: 2, b: 3, e: 4 }); // '{\"a\":2,\"b\":3,\"c\":1,\"d\":0,\"e\":4}'\n```\n\nJust like substack's, it:\n\n- handles all variations of all basic javascript values (number, string, boolean, array, object, null, Date, BigInt)\n- handles undefined _and_ function in the same way as `JSON.stringify`\n- **does not support ie8 (and below) with complete certainty**.\n\nUnlike substack's, it:\n\n- does not implement the 'replacer' or 'space' arguments of the JSON.stringify method\n- does not check for circular references\n\n## Running tests\n\n```\nnpm run test:unit:browser\nnpm run test:unit:node\n```\n","readmeFilename":"README.md","_rev":"1-76bf1545feba3bedaddd15dfd98a90f0"}