memoize-one
Version:
A memoization library which only remembers the latest invocation
53 lines (52 loc) • 1.81 kB
JSON
{
"name": "memoize-one",
"version": "2.0.1",
"description": "A memoization library which only remembers the latest invocation",
"main": "lib/index.js",
"author": "Alex Reardon <alexreardon@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/alexreardon/memoize-one.git"
},
"dependencies": {},
"devDependencies": {
"babel-cli": "6.24.1",
"babel-core": "6.24.1",
"babel-eslint": "7.2.3",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-preset-es2015": "6.24.1",
"chai": "3.5.0",
"codecov": "2.1.0",
"eslint": "3.19.0",
"eslint-plugin-flowtype": "2.32.1",
"flow-bin": "0.45.0",
"flow-copy-source": "1.1.0",
"mocha": "3.3.0",
"nyc": "10.3.0",
"rimraf": "2.6.1",
"sinon": "2.2.0"
},
"scripts": {
"test": "yarn run lint && yarn run typecheck && yarn run test:fast",
"test:fast": "mocha test --compilers js:babel-core/register --globals global",
"typecheck": "flow check",
"lint": "eslint src test -",
"lint:fix": "yarn run lint --fix",
"build": "yarn run build:clean && yarn run build:lib && yarn run build:flow",
"build:clean": "rimraf lib",
"build:lib": "babel src --out-dir lib",
"build:flow": "flow-copy-source --verbose src lib",
"coverage": "yarn run coverage:analyise && yarn run coverage:report && yarn run coverage:publish",
"coverage:analyise": "nyc --check-coverage --statements 100 --branches 100 --functions 100 --lines 100 yarn run test:fast",
"coverage:report": "nyc report --reporter=text-lcov > coverage.lcov",
"coverage:publish": "codecov",
"prepublish": "yarn run build"
},
"keywords": [
"memoize",
"cache",
"performance"
]
}