{ "name": "nanoid", "version": "5.1.6", "description": "A tiny (118 bytes), secure URL-friendly unique string ID generator", "keywords": [ "uuid", "random", "id", "url" ], "scripts": { "clean": "rm -rf coverage", "start": "vite --host 0.0.0.0 test/demo/", "test:coverage": "c8 bnt", "test:lint": "eslint .", "test:size": "pnpm clean && size-limit", "test:versions": "node ./test/check-versions.js", "test:prebuild": "node ./test/check-prebuild.js", "test": "pnpm run /^test:/" }, "type": "module", "engines": { "node": "^18 || >=20" }, "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], "author": "Andrey Sitnik ", "license": "MIT", "repository": "ai/nanoid", "exports": { ".": { "types": "./index.d.ts", "browser": "./index.browser.js", "react-native": "./index.browser.js", "default": "./index.js" }, "./non-secure": { "types": "./non-secure/index.d.ts", "default": "./non-secure/index.js" }, "./package.json": "./package.json" }, "browser": { "./index.js": "./index.browser.js" }, "react-native": { "./index.js": "./index.browser.js" }, "bin": "./bin/nanoid.js", "sideEffects": false, "types": "./index.d.ts", "devDependencies": { "@babel/core": "^7.29.0", "@logux/eslint-config": "^57.0.2", "@lukeed/uuid": "^2.0.1", "@napi-rs/uuid": "^0.2.2", "@originjs/vite-plugin-commonjs": "^1.0.3", "@size-limit/file": "^12.0.1", "@size-limit/webpack": "^12.0.1", "@types/node": "^25.5.0", "actions-up": "^1.12.0", "better-node-test": "^0.8.3", "c8": "^11.0.0", "clean-publish": "^6.0.3", "eslint": "^10.0.3", "rndm": "^1.2.0", "secure-random-string": "^1.1.4", "shortid": "^2.2.17", "simple-git-hooks": "^2.13.1", "size-limit": "^12.0.1", "terser": "^5.46.0", "tinybench": "^6.0.0", "uid": "^2.0.2", "uid-safe": "^2.1.5", "uuid": "^13.0.0", "vite": "^8.0.0" }, "size-limit": [ { "name": "nanoid", "import": "{ nanoid }", "limit": "118 B" }, { "name": "customAlphabet", "import": "{ customAlphabet }", "limit": "165 B" }, { "name": "urlAlphabet", "import": "{ urlAlphabet }", "limit": "47 B" }, { "name": "non-secure nanoid", "import": "{ nanoid }", "path": "non-secure/index.js", "limit": "90 B" }, { "name": "non-secure customAlphabet", "import": "{ customAlphabet }", "path": "non-secure/index.js", "limit": "53 B" } ], "prettier": { "arrowParens": "avoid", "jsxSingleQuote": false, "quoteProps": "consistent", "semi": false, "singleQuote": true, "trailingComma": "none" }, "clean-publish": { "cleanDocs": true, "cleanComments": true }, "c8": { "exclude": [ "bin/nanoid.js", "**/*.test.*", "test/*" ], "lines": 100, "check-coverage": true, "reporter": [ "text", "lcov" ], "skip-full": true, "clean": true }, "simple-git-hooks": { "pre-commit": "./test/check-versions.js" }, "pnpm": { "ignoredBuiltDependencies": [ "esbuild", "unrs-resolver" ], "onlyBuiltDependencies": [ "simple-git-hooks" ] } }