memoru
Version:
A hash-based LRU cache that evicts entries based on memory usage rather than time or item count.
110 lines (109 loc) • 3.69 kB
JSON
{
"$schema": "http://json.schemastore.org/package.json",
"name": "memoru",
"version": "1.1.2",
"description": "A hash-based LRU cache that evicts entries based on memory usage rather than time or item count.",
"keywords": [
"memoru",
"lru",
"lru-cache",
"hash-lru",
"cache",
"memory",
"memory-usage",
"hash-based",
"eviction",
"memory-eviction"
],
"homepage": "https://github.com/SkeLLLa/memoru/blob/master/README.md",
"bugs": {
"url": "https://github.com/SkeLLLa/memoru/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SkeLLLa/memoru.git"
},
"license": "MIT",
"author": "m03geek",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"lib": "src",
"doc": "docs",
"example": "examples",
"test": "test"
},
"files": [
"dist"
],
"scripts": {
"build": "pnpm run build:clean && pnpm run build:cjs && pnpm run build:docs && pnpm run build:format",
"build:cjs": "tsc -p tsconfig.build.json && echo '{\"type\": \"commonjs\"}' > dist/package.json",
"build:clean": "rm -rf dist",
"build:docs": "api-extractor run -l && api-documenter markdown -i ./temp -o ./docs/api",
"build:format": "pretty-quick",
"build:node": "pnpm run build:cjs",
"examples": "tsx examples/index.ts",
"lint": "pnpm run lint:types && pnpm run lint:codestyle && pnpm run lint:packages",
"lint:codestyle": "eslint",
"lint:packages": "pnpm audit --prod --audit-level=high",
"lint:types": "tsc -p tsconfig.json",
"release": "semantic-release",
"test": "pnpm run lint && pnpm run test:unit",
"test:unit": "node --no-warnings --import tsx --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info --test test/** --test-coverage-include=src/**",
"test:unit:local": "node --no-warnings --import tsx --experimental-test-coverage --test test/** --test-coverage-include=src/**"
},
"dependencies": {},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.28.0",
"@ianvs/prettier-plugin-sort-imports": "4.4.1",
"@microsoft/api-documenter": "^7.26.27",
"@microsoft/api-extractor": "^7.52.8",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.3",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.3",
"@tsconfig/node-lts": "^22.0.1",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^22.15.31",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"conventional-changelog-conventionalcommits": "^8.0.0",
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.4.3",
"eslint-plugin-import-x": "^4.15.2",
"eslint-plugin-prettier": "^5.4.1",
"eslint-plugin-tsdoc": "^0.4.0",
"globals": "^16.2.0",
"globstar": "^1.0.0",
"prettier": "^3.5.3",
"prettier-plugin-jsdoc": "^1.3.2",
"prettier-plugin-packagejson": "^2.5.15",
"prettier-plugin-sh": "^0.15.0",
"prettier-plugin-sort-json": "^4.1.1",
"pretty-quick": "^4.2.2",
"semantic-release": "^24.2.5",
"tsx": "^4.20.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.0"
},
"packageManager": "pnpm@10.13.1",
"engines": {
"node": ">=18",
"pnpm": ">=9"
},
"volta": {
"node": "24.4.0",
"pnpm": "10.13.1"
},
"publishConfig": {
"access": "public",
"main": "dist/index.js",
"provenance": true,
"types": "dist/index.d.ts"
}
}