UNPKG

trie-memoize

Version:

A memoization algorithm in which each function argument represents a new key, creating a trie of caches as defined by the array in your first argument.

125 lines (124 loc) 3.08 kB
{ "name": "trie-memoize", "version": "1.2.0", "homepage": "https://github.com/jaredLunde/trie-memoize#readme", "repository": "github:jaredLunde/trie-memoize", "bugs": "https://github.com/jaredLunde/trie-memoize/issues", "author": "Jared Lunde <jared.lunde@gmail.com> (https://jaredLunde.com)", "license": "MIT", "description": "A memoization algorithm in which each function argument represents a new key, creating a trie of caches as defined by the array in your first argument.", "keywords": [ "trie", "memo", "memoize", "memoizer", "memoization", "cache", "trie memoize" ], "main": "dist/main/index.js", "module": "dist/module/index.js", "unpkg": "dist/umd/trie-memoize.js", "source": "src/index.ts", "types": "types/index.d.ts", "files": [ "/dist", "/src", "/types" ], "exports": { ".": { "browser": "./dist/module/index.js", "import": "./dist/esm/index.mjs", "require": "./dist/main/index.js", "umd": "./dist/umd/trie-memoize.js", "source": "./src/index.ts", "types": "./types/index.d.ts", "default": "./dist/main/index.js" }, "./package.json": "./package.json", "./": "./" }, "sideEffects": false, "scripts": { "build": "lundle build --umd-case camel", "check-types": "lundle check-types", "dev": "lundle build -f module,cjs -w", "format": "prettier --write \"{,!(node_modules|dist|coverage)/**/}*.{ts,js,md,yml,json}\"", "lint": "eslint . --ext .ts", "prepublishOnly": "npm run lint && npm run test && npm run build && npm run format", "test": "jest", "validate": "lundle check-types && npm run lint && jest --coverage" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "**/*.{ts,js}": [ "lundle build -f types", "eslint", "prettier --write" ], "**/*.{md,yml,json}": [ "prettier --write" ] }, "eslintConfig": { "extends": [ "lunde" ], "rules": { "prefer-rest-params": "off", "prefer-spread": "off" } }, "eslintIgnore": [ "node_modules", "coverage", "dist", "test", "*.config.js" ], "jest": { "moduleDirectories": [ "node_modules", "src", "test" ], "testMatch": [ "<rootDir>/src/**/?(*.)test.ts" ], "collectCoverageFrom": [ "**/src/**/*.ts" ], "setupFilesAfterEnv": [ "./test/setup.js" ], "snapshotResolver": "./test/resolve-snapshot.js", "globals": { "__DEV__": true } }, "prettier": { "semi": false, "singleQuote": true, "bracketSpacing": false }, "devDependencies": { "@types/jest": "latest", "babel-jest": "latest", "babel-plugin-annotate-pure-calls": "latest", "eslint": "latest", "eslint-config-lunde": "^0.2.1", "husky": "latest", "jest": "latest", "lint-staged": "latest", "lundle": "^0.2.3", "prettier": "latest", "typescript": "latest" }, "dependencies": {}, "peerDependencies": {} }