-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
136 lines (136 loc) · 5.24 KB
/
package.json
File metadata and controls
136 lines (136 loc) · 5.24 KB
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
{
"name": "@codecorn/euro-plate-validator",
"version": "1.0.15",
"description": "European license plate validator (Russia excluded).Syntax-only validation via regex for multiple EU/EEA countries including Italy, UK, Germany, France, Spain and more.Supports Node.js (TypeScript package) and PHP library.",
"keywords": [
"license-plate",
"plate",
"validator",
"regex",
"europe",
"anpr",
"vehicle",
"car",
"nodejs",
"typescript",
"php",
"italy",
"germany",
"france",
"spain",
"uk",
"poland",
"netherlands",
"belgium",
"scandinavia",
"balkans",
"ukraine"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist-types/index.d.ts",
"typesVersions": {
"*": {
"*": [
"dist-types/*.d.ts",
"dist-types/*/index.d.ts"
]
}
},
"exports": {
".": {
"types": "./dist-types/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./client": {
"types": "./dist-types/client/index.d.ts",
"import": "./dist/client/index.mjs",
"require": "./dist/client/index.cjs"
},
"./browser": {
"import": "./dist/browser/index.esm.js",
"default": "./dist/browser/index.esm.js"
},
"./package.json": "./package.json"
},
"browser": "dist/browser/index.esm.js",
"unpkg": "dist/browser/index.iife.min.js",
"jsdelivr": "dist/browser/index.iife.min.js",
"bin": {
"euro-plate-validator": "bin/cli.mjs"
},
"files": [
"dist/",
"dist-types/",
"bin/",
"LICENSE",
"README.md",
"README_IT.md"
],
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/CodeCornTech/euro-plate-validator.git"
},
"bugs": {
"url": "https://github.com/CodeCornTech/euro-plate-validator/issues"
},
"homepage": "https://github.com/CodeCornTech/euro-plate-validator/blob/main/README.md",
"license": "MIT",
"author": "Federico Girolami <f.girolami@codecorn.it|https://codecorn.it> (@fgirolami29|@CodeCornTech)",
"scripts": {
"clean": "rimraf dist dist-types",
"typecheck:bundle": "tsc -p tsconfig.bundle.json --noEmit",
"typecheck:node": "tsc -p tsconfig.node.json --noEmit",
"typecheck:node:files": "tsc -p tsconfig.node.json --noEmit --listFiles",
"build:types": "tsc -p tsconfig.bundle.json --emitDeclarationOnly --declaration --outDir dist-types",
"build:esm": "esbuild src/index.ts --bundle --platform=node --format=esm --sourcemap --outfile=dist/index.js",
"build:cjs": "esbuild src/index.ts --bundle --platform=node --format=cjs --sourcemap --outfile=dist/index.cjs",
"build:browser:esm": "esbuild src/index.ts --bundle --platform=browser --format=esm --sourcemap --outfile=dist/browser/index.esm.js",
"build:browser:esm:min": "esbuild src/index.ts --bundle --platform=browser --format=esm --minify --sourcemap --outfile=dist/browser/index.esm.min.js",
"build:browser:iife": "esbuild src/index.ts --bundle --platform=browser --format=iife --global-name=EuroPlateValidator --minify --outfile=dist/browser/index.iife.min.js",
"build:client:esm": "esbuild src/client/index.ts --bundle --platform=browser --format=esm --sourcemap --outfile=dist/client/index.mjs",
"build:client:esm:min": "esbuild src/client/index.ts --bundle --platform=browser --format=esm --minify --sourcemap --outfile=dist/client/index.min.mjs",
"build:client:cjs": "esbuild src/client/index.ts --bundle --platform=node --format=cjs --sourcemap --outfile=dist/client/index.cjs",
"build:cli": "esbuild src/cli.ts --bundle --platform=node --format=esm --sourcemap --outfile=dist/cli.mjs",
"build:browser": "npm run build:browser:esm && npm run build:browser:iife",
"build:client": "npm run build:client:esm && npm run build:client:cjs",
"postbuild:nocheck": "node ./scripts/postbuild-nocheck.js",
"build:assets": "node ./scripts/copy-assets.js",
"build:css:min": "node ./scripts/minify-css.mjs",
"build": "npm run clean && npm run build:types && npm run build:esm && npm run build:cjs && npm run build:browser && npm run build:browser:esm:min && npm run build:client && npm run build:client:esm:min && npm run build:assets && npm run build:css:min && npm run postbuild:nocheck",
"prepublishOnly": "npm run build",
"cli-test": "node ./bin/cli.mjs \"AB 123 CD\" --countries IT --type car --pretty",
"test": "node -e \"import('./dist/index.js').then(m=>console.log(m.validatePlate('AB 123 CD',['IT'])))\"",
"test:samples": "npm run build && node ./scripts/test-samples.mjs",
"test:random": "npm run build && node ./scripts/test-random.mjs",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"@types/inputmask": "5.0.7",
"@types/jquery": "3.5.33",
"@types/node": "24.6.2",
"@types/toastr": "2.1.43",
"esbuild": "0.25.10",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-prettier": "5.5.4",
"prettier": "3.6.2",
"rimraf": "6.0.1",
"tslib": "2.8.1",
"typescript": "^5.9.3",
"undici-types": "7.16.0"
},
"peerDependencies": {
"inputmask": ">=5"
},
"engines": {
"node": ">=18"
}
}