-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
package.json
83 lines (83 loc) · 2.42 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
{
"name": "html-entities",
"version": "2.5.2",
"description": "Fastest HTML entities encode/decode library.",
"keywords": [
"html",
"html entities",
"html entities encode",
"html entities decode",
"entities",
"entities encode",
"entities decode"
],
"author": {
"name": "Marat Dulin",
"email": "[email protected]"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/mdevils"
},
{
"type": "patreon",
"url": "https://patreon.com/mdevils"
}
],
"devDependencies": {
"@types/benchmark": "^2.1.0",
"@types/chai": "^4.2.11",
"@types/he": "^1.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.4",
"@typescript-eslint/eslint-plugin": "^4.6.1",
"@typescript-eslint/parser": "^4.6.1",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"entities": "^4.5.0",
"eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4",
"flowgen": "^1.13.0",
"he": "^1.2.0",
"husky": "^4.3.6",
"mocha": "^9.2.2",
"prettier": "^2.1.2",
"terser": "^5.6.1",
"ts-node": "^8.9.1",
"typescript": "^3.8.3"
},
"repository": {
"type": "git",
"url": "https://github.com/mdevils/html-entities.git"
},
"sideEffects": false,
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"types": "./lib/index.d.ts",
"scripts": {
"test": "mocha --recursive -r ts-node/register test/**/*.ts",
"test:watch": "mocha -w --recursive -r ts-node/register test/**/*.ts",
"test:lib": "TEST_LIB=1 npm run test",
"benchmark": "ts-node benchmark/benchmark",
"lint": "eslint src/**.ts",
"flow-type-gen": "flowgen --add-flow-header lib/index.d.ts -o lib/index.js.flow",
"remove-unused-declarations": "find lib -type f \\( -name '*.d.ts' ! -name index.d.ts \\) | xargs rm",
"minimize-lib-files": "cd lib && find . -type f \\( -name '*.js' \\) | while read fn; do terser --source-map \"content='$fn.map',filename='$fn.map',url='$fn.map'\" $fn -o $fn; done",
"build": "rm -Rf lib/* && tsc && npm run remove-unused-declarations && npm run flow-type-gen && npm run minimize-lib-files && npm run test:lib",
"prepublishOnly": "npm run build"
},
"files": [
"lib",
"src",
"LICENSE"
],
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run test"
}
},
"license": "MIT"
}