-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
59 lines (59 loc) · 3.05 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
{
"name": "nuonce",
"version": "2.0.2",
"description": "Nuanced implementation of 'once' functionality, optimized for node.js",
"keywords": "once, single, function, call, run, node",
"main": "index.js",
"scripts": {
"test": "node --allow-natives-syntax --trace-deopt --no-concurrent_recompilation --trace-file-names ./test/index.js | tap-diff",
"prepublishOnly": "npm run -s test && npm run -s checkStyle",
"benchmark": "INFO=1 node --expose-gc $NODE_FLAGS ./benchmarks/index.js",
"benchmarks": "(INFO=1 npm run -s benchmark1call0props && npm run -s benchmark50calls0props && npm run -s benchmark1call3props && npm run -s benchmark50calls3props) > ./reports/benchmarks.txt",
"benchmark1call0props": "CALLS=1 PROPS=0 node --expose-gc $NODE_FLAGS ./benchmarks/index.js",
"benchmark1call3props": "CALLS=1 PROPS=3 node --expose-gc $NODE_FLAGS ./benchmarks/index.js",
"benchmark50calls0props": "CALLS=50 PROPS=0 node --expose-gc $NODE_FLAGS ./benchmarks/index.js",
"benchmark50calls3props": "CALLS=50 PROPS=3 node --expose-gc $NODE_FLAGS ./benchmarks/index.js",
"postbenchmarks": "cat ./reports/benchmarks.txt && echo '' && echo 'Benchmark results saved to `reports/benchmarks.txt`'",
"predoc": "rm -rf ./reports/jsdoc",
"doc": "jsdoc -d reports/jsdoc -c tools/jsdoc.json --readme README.md *.js",
"postdoc": "echo 'Documentation available at `reports/jsdoc/index.html`'",
"precheckStyle": "rm ./reports/eslint.txt",
"checkStyle": "eslint *.js > ./reports/eslint.txt || echo 'ESLint results saved to `reports/eslint.txt`' && cat ./reports/eslint.txt",
"precheckCoverage": "rm -rf ./reports/coverage",
"checkCoverage": "c8 --clean --report --reporter text --reporter html --reports-dir reports/coverage node --allow-natives-syntax ./test/index.js",
"postcheckCoverage": "echo Coverage results saved to '`reports/coverage/index.html`'",
"precheckMemory": "rm -rf ./reports/*.heapsnapshot",
"checkMemory": "node --expose-gc --trace-gc ./test/memory.js",
"postcheckMemory": "echo 'heapsnapshots created in `reports` directory'",
"checkAudit": "npm shrinkwrap && npm audit > ./reports/audit.log || cat ./reports/audit.log; rm npm-shrinkwrap.json"
},
"engines": {
"node": ">=6.9"
},
"devDependencies": {
"beautify-benchmark": "ahwayakchih/beautify-benchmark",
"benchmark": "^2.1.4",
"c8": "^8.0.0",
"docdash": "^1.2.0",
"eslint": "^8.43.0",
"eslint-plugin-jsdoc": "^46.2.6",
"jsdoc": "^3.6.6",
"once": "^1.4.0",
"once.js": "daniellmb/once.js",
"onetime": "^6.0.0",
"tap-diff": "^0.1.1",
"tape": "^5.6.3",
"tape-catch": "^1.0.6"
},
"homepage": "https://github.com/ahwayakchih/nuonce",
"author": "Marcin Konicki (https://ahwayakchih.neoni.net)",
"license": "ISC",
"bugs": {
"url": "https://github.com/ahwayakchih/nuonce/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/ahwayakchih/nuonce.git"
},
"tonicExample": "const nuonce = require('nuonce/stripped');\nvar i = 0;\nconst test = nuonce(() => ++i); console.log(test(), test());"
}