{ "name": "nanoid", "version": "3.1.30", "description": "A tiny (130 bytes), secure URL-friendly unique string ID generator", "keywords": [ "uuid", "random", "id", "url" ], "scripts": { "test": "jest --coverage && eslint . && check-dts && size-limit", "start": "parcel test/demo/index.html --dist-dir test/demo/build --open" }, "engines": { "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" }, "author": "Andrey Sitnik ", "license": "MIT", "repository": "ai/nanoid", "browser": { "./index.js": "./index.browser.js", "./async/index.js": "./async/index.browser.js", "./async/index.cjs": "./async/index.browser.cjs" }, "react-native": { "./async/index.js": "./async/index.native.js" }, "bin": "./bin/nanoid.cjs", "sideEffects": false, "types": "./index.d.ts", "devDependencies": { "@babel/core": "^7.16.0", "@logux/eslint-config": "^46.1.0", "@lukeed/uuid": "^2.0.0", "@parcel/optimizer-cssnano": "^2.0.1", "@parcel/optimizer-htmlnano": "^2.0.1", "@parcel/packager-css": "^2.0.1", "@parcel/packager-html": "^2.0.1", "@parcel/transformer-css": "^2.0.1", "@parcel/transformer-html": "^2.0.1", "@parcel/transformer-postcss": "^2.0.1", "@parcel/transformer-posthtml": "^2.0.1", "@size-limit/dual-publish": "^7.0.3", "@size-limit/file": "^7.0.3", "@size-limit/webpack": "^7.0.3", "@typescript-eslint/eslint-plugin": "^5.4.0", "@typescript-eslint/parser": "^5.4.0", "benchmark": "^2.1.4", "check-dts": "^0.6.4", "cuid": "^2.1.8", "dual-publish": "^2.0.2", "eslint": "^8.3.0", "eslint-config-standard": "^16.0.3", "eslint-plugin-import": "^2.25.3", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prefer-let": "^3.0.1", "eslint-plugin-promise": "^5.1.1", "jest": "^27.3.1", "parcel": "^2.0.1", "picocolors": "^1.0.0", "postcss": "^8.4.4", "rndm": "^1.2.0", "secure-random-string": "^1.1.3", "shortid": "^2.2.16", "size-limit": "^7.0.3", "terser": "^5.10.0", "typescript": "^4.5.2", "uid": "^2.0.0", "uid-safe": "^2.1.5", "uuid": "^8.3.2" }, "size-limit": [ { "name": "nanoid", "import": "{ nanoid }", "limit": "130 B" }, { "name": "customAlphabet", "import": "{ customAlphabet }", "limit": "169 B" }, { "name": "urlAlphabet", "import": "{ urlAlphabet }", "limit": "61 B" }, { "name": "non-secure nanoid", "import": "{ nanoid }", "path": "non-secure/index.js", "limit": "118 B" }, { "name": "non-secure customAlphabet", "import": "{ customAlphabet }", "path": "non-secure/index.js", "limit": "65 B" }, { "name": "async nanoid", "import": "{ nanoid }", "path": "async/index.js", "limit": "144 B" }, { "name": "async customAlphabet", "import": "{ customAlphabet }", "path": "async/index.js", "limit": "163 B" }, { "name": "Brotli all", "brotli": true, "import": "{ nanoid, customAlphabet, urlAlphabet }", "limit": "267 B" }, { "name": "Brotli non-secure", "brotli": true, "import": "{ nanoid, customAlphabet }", "path": "non-secure/index.js", "limit": "112 B" }, { "name": "Brotli async", "brotli": true, "import": "{ nanoid, customAlphabet }", "path": "async/index.js", "limit": "228 B" } ], "eslintConfig": { "extends": "@logux/eslint-config/ts", "rules": { "consistent-return": "off", "func-style": "off", "yoda": "off" }, "overrides": [ { "files": "*.native.js", "rules": { "node/no-missing-require": "off", "global-require": "off" } }, { "files": "*.test.*", "globals": { "afterEach": "readonly", "describe": "readonly", "expect": "readonly", "jest": "readonly", "it": "readonly" } } ] }, "eslintIgnore": [ "test/demo/build", "nanoid.js", "**/errors.ts" ], "prettier": { "arrowParens": "avoid", "jsxSingleQuote": false, "quoteProps": "consistent", "semi": false, "singleQuote": true, "trailingComma": "none" }, "jest": { "testEnvironment": "node", "coverageThreshold": { "global": { "statements": 100 } } }, "clean-publish": { "cleanDocs": true, "cleanComments": true } }