UNPKG

lru-cache-for-clusters-as-promised

Version:

LRU Cache that is safe for clusters, based on `lru-cache`. Save memory by only caching items on the main thread via a promisified interface.

68 lines (67 loc) 1.93 kB
{ "name": "lru-cache-for-clusters-as-promised", "version": "1.7.4", "types": "index.d.ts", "description": "LRU Cache that is safe for clusters, based on `lru-cache`. Save memory by only caching items on the main thread via a promisified interface.", "main": "./lru-cache-for-clusters-as-promised.js", "scripts": { "test": "./node_modules/.bin/mocha ./test -s 0 --exit", "coverage-report": "./test/bin/nyc-coverage-report", "coverage": "npm run coverage-report && open ./coverage/lcov-report/index.html", "coverage-badge": "./node_modules/.bin/istanbul-cobertura-badger -e 95 -g 85 -b \"${PWD##*/}\"", "lint": "./node_modules/.bin/eslint .", "validate": "./test/bin/module-validator", "depcheck": "./test/bin/dependency-checker", "sloc": "./node_modules/.bin/sloc *.js test", "sloc-app": "./node_modules/.bin/sloc *.js", "sloc-test": "./node_modules/.bin/sloc test", "inspect": "NODE_ENV=test ./node_modules/.bin/mocha -s 0 --inspect --debug-brk" }, "repository": { "type": "git", "url": "git+https://github.com/doublesharp/lru-cache-for-clusters-as-promised.git" }, "keywords": [ "lru", "mru", "cache", "lru-cache", "lru cache", "cluster", "promise", "master", "worker", "memory" ], "author": "Justin Silver", "license": "MIT", "dependencies": { "cron": "1.8.2", "debug": "4.3.3", "lru-cache": "6.0.0", "uuid": "8.3.2" }, "devDependencies": { "async": "^3.2.2", "depcheck": "1.4.2", "eslint": "8.3.0", "eslint-plugin-mocha": "9.0.0", "express": "4.17.1", "flatted": "^3.2.4", "istanbul-cobertura-badger": "1.3.1", "mocha": "9.1.3", "nyc": "15.1.0", "should": "13.2.3", "sloc": "0.2.1", "spec-xunit-file": "0.0.1-3", "supertest": "6.1.6" }, "pre-commit": [ "lint", "validate", "depcheck" ], "pre-push": [ "test" ] }