forked from ai/nanoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (146 loc) · 3.26 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "nanoid",
"version": "5.0.4",
"description": "A tiny (109 bytes), secure URL-friendly unique string ID generator",
"keywords": [
"uuid",
"random",
"id",
"url"
],
"scripts": {
"clean": "rm -rf coverage",
"start": "vite test/demo/ --open",
"test:coverage": "c8 pnpm bnt",
"test:lint": "eslint .",
"test:size": "pnpm clean && size-limit",
"test": "pnpm run /^test:/"
},
"type": "module",
"engines": {
"node": "^18 || >=20"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
"repository": "ai/nanoid",
"exports": {
".": {
"browser": "./index.browser.js",
"default": "./index.js"
},
"./non-secure": "./non-secure/index.js",
"./package.json": "./package.json"
},
"browser": {
"./index.js": "./index.browser.js"
},
"bin": "./bin/nanoid.js",
"sideEffects": false,
"types": "./index.d.ts",
"devDependencies": {
"@babel/core": "^7.23.5",
"@logux/eslint-config": "^52.0.2",
"@lukeed/uuid": "^2.0.1",
"@napi-rs/uuid": "^0.2.2",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@size-limit/file": "^11.0.0",
"@size-limit/webpack": "^11.0.0",
"@types/node": "^20.10.3",
"benchmark": "^2.1.4",
"better-node-test": "^0.4.1",
"c8": "^8.0.1",
"clean-publish": "^4.2.0",
"eslint": "^8.55.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"picocolors": "^1.0.0",
"rndm": "^1.2.0",
"secure-random-string": "^1.1.3",
"shortid": "^2.2.16",
"size-limit": "^11.0.0",
"terser": "^5.25.0",
"uid": "^2.0.2",
"uid-safe": "^2.1.5",
"uuid": "^9.0.1",
"vite": "^5.0.5"
},
"size-limit": [
{
"name": "nanoid",
"import": "{ nanoid }",
"limit": "109 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": "88 B"
},
{
"name": "non-secure customAlphabet",
"import": "{ customAlphabet }",
"path": "non-secure/index.js",
"limit": "53 B"
}
],
"eslintConfig": {
"extends": "@logux/eslint-config",
"rules": {
"consistent-return": "off",
"func-style": "off",
"yoda": "off"
}
},
"eslintIgnore": [
"test/demo/build",
"nanoid.js",
"**/errors.ts"
],
"prettier": {
"arrowParens": "avoid",
"jsxSingleQuote": false,
"quoteProps": "consistent",
"semi": false,
"singleQuote": true,
"trailingComma": "none"
},
"clean-publish": {
"cleanDocs": true,
"cleanComments": true
},
"c8": {
"exclude": [
"**/*.test.*",
"test/*"
],
"lines": 100,
"check-coverage": true,
"reporter": [
"text",
"lcov"
],
"skip-full": true,
"clean": true
}
}