{
"name": "nanoid",
"version": "6.0.2",
"description": "A tiny (117 bytes), secure URL-friendly unique string ID generator",
"keywords": [
"id",
"random",
"url",
"uuid"
],
"license": "MIT",
"author": "Andrey Sitnik <andrey@sitnik.es>",
"repository": "ai/nanoid",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"bin": "./bin/nanoid.js",
"type": "module",
"sideEffects": false,
"browser": {
"./index.js": "./index.browser.js"
},
"types": "./index.d.ts",
"react-native": {
"./index.js": "./index.browser.js"
},
"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"
},
"scripts": {
"clean": "rm -rf coverage",
"start": "vite --host 0.0.0.0 test/demo/",
"test:coverage": "bnt --coverage 100 --coverage-exclude 'test/*'",
"test:lint": "oxlint",
"test:size": "pnpm clean && size-limit",
"test:prebuild": "node ./test/check-prebuild.js",
"test": "pnpm run /^test:/"
},
"devDependencies": {
"@logux/oxc-configs": "^1.2.0",
"@lukeed/uuid": "^2.0.1",
"@napi-rs/uuid": "^0.2.2",
"@size-limit/preset-small-lib": "^14.1.0",
"better-node-test": "^1.0.0",
"eslint-plugin-prefer-let": "^4.2.2",
"nope-id": "^1.4.1",
"oxlint": "^1.86.0",
"oxlint-tsgolint": "^7.0.2003",
"rndm": "^1.2.0",
"secure-random-string": "^1.1.4",
"size-limit": "^14.1.0",
"terser": "^5.51.2",
"tinybench": "^6.2.0",
"typescript": "^7.0.2",
"uid": "^2.0.2",
"uid-safe": "^2.1.5",
"uuid": "^14.0.2",
"vite": "^8.3.2"
},
"size-limit": [
{
"name": "nanoid",
"import": "{ nanoid }",
"limit": "117 B"
},
{
"name": "customAlphabet",
"import": "{ customAlphabet }",
"limit": "220 B"
},
{
"name": "urlAlphabet",
"import": "{ urlAlphabet }",
"limit": "44 B"
},
{
"name": "non-secure nanoid",
"import": "{ nanoid }",
"path": "non-secure/index.js",
"limit": "93 B"
},
{
"name": "non-secure customAlphabet",
"import": "{ customAlphabet }",
"path": "non-secure/index.js",
"limit": "66 B"
}
],
"engines": {
"node": "^22 || ^24 || >=26"
}
}