UNPKG

@tsdotnet/memoize

Version:

A utility for creating an iteratively cached (memoized) result of an iterable.

62 lines (61 loc) 2.14 kB
{ "name": "@tsdotnet/memoize", "version": "1.0.10", "description": "A utility for creating an iteratively cached (memoized) result of an iterable.", "author": "electricessence", "license": "MIT", "types": "dist/Memoized.d.ts", "main": "dist/Memoized.js", "module": "dist-esm/Memoized.js", "keywords": [ "iterable", "iterator", "memoize", "memoized", "cached", "cached iterable" ], "scripts": { "build:dist": "rimraf dist/* && tsc && copyfiles -u 1 src/**/*.d.ts dist", "build:dist-esm": "rimraf dist-esm/* && tsc -p tsconfig.esm.json", "build": "pnpm i && pnpm run build:dist && pnpm run build:dist-esm", "bump": "npm run-script precommit && npm version patch", "docs": "rimraf docs/* && typedoc --options typedoc.json --readme none", "lint": "eslint src/**/*.ts", "precommit": "pnpm i && run-p lint test && run-p build:* && npm run-script validate && git status -s", "prepublishOnly": "npm run-script build && run-p validate test", "preversion": "run-p lint test", "postversion": "git push && git push --tags && npm run-script docs && git commit -m \"Updated docs.\" docs && git push", "test": "mocha -r ts-node/register tests/**/*.ts", "validate": "node ./.build/validate-package.js" }, "repository": { "type": "git", "url": "git+https://github.com/tsdotnet/memoize.git" }, "bugs": { "url": "https://github.com/tsdotnet/memoize/issues" }, "homepage": "https://github.com/tsdotnet/memoize#readme", "devDependencies": { "@types/chai": "^4.3.0", "@types/mocha": "^9.1.0", "@types/node": "^17.0.17", "@typescript-eslint/eslint-plugin": "^5.11.0", "@typescript-eslint/parser": "^5.11.0", "chai": "^4.3.6", "copyfiles": "^2.4.1", "eslint": "^8.9.0", "eslint-config-typescript": "^3.0.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^6.0.0", "mocha": "^9.2.0", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", "rimraf": "^3.0.2", "ts-node": "^10.5.0", "typedoc": "^0.22.11", "typescript": "^4.5.5" } }