UNPKG

2.69 kBJSONView Raw
1{
2 "name": "lru-cache",
3 "description": "A cache object that deletes the least-recently-used items.",
4 "version": "10.0.1",
5 "author": "Isaac Z. Schlueter <i@izs.me>",
6 "keywords": [
7 "mru",
8 "lru",
9 "cache"
10 ],
11 "sideEffects": false,
12 "scripts": {
13 "build": "npm run prepare",
14 "preprepare": "rm -rf dist",
15 "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
16 "postprepare": "bash fixup.sh",
17 "pretest": "npm run prepare",
18 "presnap": "npm run prepare",
19 "test": "c8 tap",
20 "snap": "c8 tap",
21 "preversion": "npm test",
22 "postversion": "npm publish",
23 "prepublishOnly": "git push origin --follow-tags",
24 "format": "prettier --write .",
25 "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts",
26 "benchmark-results-typedoc": "bash scripts/benchmark-results-typedoc.sh",
27 "prebenchmark": "npm run prepare",
28 "benchmark": "make -C benchmark",
29 "preprofile": "npm run prepare",
30 "profile": "make -C benchmark profile"
31 },
32 "main": "./dist/cjs/index.js",
33 "module": "./dist/mjs/index.js",
34 "exports": {
35 "./min": {
36 "import": {
37 "types": "./dist/mjs/index.d.ts",
38 "default": "./dist/mjs/index.min.js"
39 },
40 "require": {
41 "types": "./dist/cjs/index.d.ts",
42 "default": "./dist/cjs/index.min.js"
43 }
44 },
45 ".": {
46 "import": {
47 "types": "./dist/mjs/index.d.ts",
48 "default": "./dist/mjs/index.js"
49 },
50 "require": {
51 "types": "./dist/cjs/index.d.ts",
52 "default": "./dist/cjs/index.js"
53 }
54 }
55 },
56 "repository": "git://github.com/isaacs/node-lru-cache.git",
57 "devDependencies": {
58 "@size-limit/preset-small-lib": "^7.0.8",
59 "@types/node": "^20.2.5",
60 "@types/tap": "^15.0.6",
61 "benchmark": "^2.1.4",
62 "c8": "^7.11.2",
63 "clock-mock": "^1.0.6",
64 "esbuild": "^0.17.11",
65 "eslint-config-prettier": "^8.5.0",
66 "marked": "^4.2.12",
67 "mkdirp": "^2.1.5",
68 "prettier": "^2.6.2",
69 "size-limit": "^7.0.8",
70 "tap": "^16.3.4",
71 "ts-node": "^10.9.1",
72 "tslib": "^2.4.0",
73 "typedoc": "^0.24.6",
74 "typescript": "^5.0.4"
75 },
76 "license": "ISC",
77 "files": [
78 "dist"
79 ],
80 "engines": {
81 "node": "14 || >=16.14"
82 },
83 "prettier": {
84 "semi": false,
85 "printWidth": 70,
86 "tabWidth": 2,
87 "useTabs": false,
88 "singleQuote": true,
89 "jsxSingleQuote": false,
90 "bracketSameLine": true,
91 "arrowParens": "avoid",
92 "endOfLine": "lf"
93 },
94 "tap": {
95 "coverage": false,
96 "node-arg": [
97 "--expose-gc",
98 "-r",
99 "ts-node/register"
100 ],
101 "ts": false
102 },
103 "size-limit": [
104 {
105 "path": "./dist/mjs/index.js"
106 }
107 ]
108}