UNPKG

@akashbabu/lfu-cache

Version:

LFU cache implementation with a complexity of `O(1)` for all transactions

112 lines (111 loc) 2.96 kB
{ "name": "@akashbabu/lfu-cache", "version": "1.1.0", "description": "LFU cache implementation with a complexity of `O(1)` for all transactions", "sideEffects": false, "main": "lib/lfuCache.js", "unpkg": "dist/lfuCache.js", "module": "es/lfuCache.js", "typings": "types/src/index.d.ts", "scripts": { "_test": "cross-env TS_NODE_FILES=true mocha --require ts-node/register test/**/*.spec.ts", "_test:exit": "npm run _test -- --exit", "test": "cross-env NODE_ENV=test npm run _test:exit", "test:dev": "cross-env NODE_ENV=test npm run _test -- -w", "test:grep": "cross-env NODE_ENV=test npm run _test -- -g ", "coverage": "nyc npm run test", "lint:fix": "tslint --fix --config tslint.json src/index.ts", "lint": "tslint --config tslint.json src/index.ts", "tsc:build": "tsc", "rollup:build": "rollup -c", "build": "npm run tsc:build && npm run rollup:build", "pack": "npm run build && npm pack", "status": "git status", "coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls" }, "engines": { "node": ">=8" }, "repository": { "type": "git", "url": "git+https://github.com/AkashBabu/lfu-cache.git" }, "keywords": [ "lfu", "lru", "cache", "fast", "O(1)", "typescript" ], "author": "001akashbabu@gmail.com", "license": "MIT", "bugs": { "url": "https://github.com/AkashBabu/lfu-cache/issues" }, "homepage": "https://github.com/AkashBabu/lfu-cache#readme", "precommit": [ "lint:fix", "lint", "coverage", "build", "status" ], "nyc": { "extension": [ ".ts" ], "exclude": [ "**/*.d.ts" ], "include": [ "src/**/*" ] }, "devDependencies": { "@babel/core": "^7.7.2", "@babel/preset-env": "^7.7.1", "@babel/preset-typescript": "^7.7.2", "@rollup/plugin-replace": "^2.2.1", "@types/chai": "^4.2.3", "@types/mocha": "^5.2.7", "@types/node": "^12.7.12", "chai": "^4.1.2", "cli-progress": "^3.3.1", "coveralls": "^3.0.6", "cross-env": "^6.0.0", "delay": "^4.3.0", "gitbook-cli": "^2.3.2", "mocha": "^5.2.0", "nodemon": "^1.19.3", "nyc": "^12.0.2", "pre-commit": "^1.2.2", "radargun": "^1.0.1", "rimraf": "^2.6.2", "rollup": "^1.26.5", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-terser": "^5.1.2", "rollup-plugin-typescript2": "^0.25.2", "source-map-support": "^0.5.13", "ts-node": "^8.0.2", "tslint": "^5.20.0", "typedoc": "^0.15.0", "typedoc-plugin-markdown": "^2.2.11", "typescript": "^3.6.4" }, "dependencies": { "@akashbabu/node-dll": "^2.0.1" }, "npmName": "lfu-cacher", "npmFileMap": [ { "basePath": "/dist/", "files": [ "*.js" ] } ] }