You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.9 KiB

{
"name": "tiny-lru",
"description": "Tiny LRU cache for Client or Server",
"version": "10.0.1",
"homepage": "https://github.com/avoidwork/tiny-lru",
"author": "Jason Mulligan <jason.mulligan@avoidwork.com>",
"repository": {
"type": "git",
"url": "git://github.com/avoidwork/tiny-lru.git"
},
"bugs": {
"url": "https://github.com/avoidwork/tiny-lru/issues"
},
"files": [
"dist",
"*.d.ts"
],
"license": "BSD-3-Clause",
"source": "src/lru.js",
"main": "dist/tiny-lru.cjs",
"module": "dist/tiny-lru.esm.js",
"type": "module",
"sourceType": "module",
"types": "lru.d.ts",
"engines": {
"node": ">=6"
},
"engineStrict": true,
"scripts": {
"build": "npm run lint && rm -rf dist/* && npm run rollup && npm run mocha",
"benchmark": "node benchmark.js",
"changelog": "auto-changelog -p",
"lint": "eslint *.js src/*.js test/*.js",
"mocha": "mocha test/*.js",
"rollup": "rollup --config",
"test": "npm run lint && npm run mocha",
"test-webpack": "rm -rf test/webpack && git clone git@github.com:rabelais88/typescript-webpack.git test/webpack && echo \"import { lru } from 'tiny-lru';console.log(lru(1));\" >> test/webpack/src/index.ts && cd test/webpack && npm install && mkdir -p node_modules/tiny-lru/dist && cp ../../package.json node_modules/tiny-lru/ && cp ../../dist/* node_modules/tiny-lru/dist/ && npm run build",
"types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir ."
},
"devDependencies": {
"auto-changelog": "^2.4.0",
"eslint": "^8.23.1",
"mocha": "^10.0.0",
"precise": "^2.0.0",
"rollup": "^2.79.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.8.3"
},
"keywords": [
"LRU",
"cache",
"tiny",
"client",
"server",
"least",
"recently",
"used"
]
}