package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "name": "lru.min",
  3. "version": "1.1.3",
  4. "description": "🔥 An extremely fast and efficient LRU cache for JavaScript with high compatibility (including Browsers).",
  5. "main": "./lib/index.js",
  6. "module": "./lib/index.mjs",
  7. "types": "./lib/index.d.ts",
  8. "license": "MIT",
  9. "repository": {
  10. "type": "git",
  11. "url": "git+https://github.com/wellwelwel/lru.min.git"
  12. },
  13. "bugs": {
  14. "url": "https://github.com/wellwelwel/lru.min/issues"
  15. },
  16. "author": "https://github.com/wellwelwel",
  17. "funding": {
  18. "type": "github",
  19. "url": "https://github.com/sponsors/wellwelwel"
  20. },
  21. "files": [
  22. "browser",
  23. "lib"
  24. ],
  25. "engines": {
  26. "node": ">=8.0.0",
  27. "bun": ">=1.0.0",
  28. "deno": ">=1.30.0"
  29. },
  30. "scripts": {
  31. "benchmark:esm": "cd benchmark && npm ci && node index.mjs",
  32. "benchmark:cjs": "cd benchmark && npm ci && node index.cjs",
  33. "build:browser": "tsx tools/browserfy.ts",
  34. "build:esm": "esbuild src/index.ts --outfile=lib/index.mjs --platform=node --target=node12 --format=esm",
  35. "build": "rm -rf ./browser ./lib && tsc && npm run build:esm && npm run build:browser",
  36. "test:node": "poku",
  37. "test:bun": "bun poku",
  38. "test:deno": "deno run -A npm:poku",
  39. "test:coverage": "mcr --import tsx --config mcr.config.ts npm run test:node",
  40. "lint": "npx @biomejs/biome lint && prettier --check .",
  41. "lint:fix": "npx @biomejs/biome lint --write && prettier --write .github/workflows/*.yml .",
  42. "update": "pu minor && npm i && (npm audit fix || true) && npm run lint:fix",
  43. "size": "ls -lh lib/index.mjs | awk '{print $5}'"
  44. },
  45. "devDependencies": {
  46. "@babel/core": "^7.28.5",
  47. "@babel/preset-env": "^7.28.5",
  48. "@biomejs/biome": "^1.9.4",
  49. "@types/babel__core": "^7.20.5",
  50. "@types/node": "^24.10.1",
  51. "esbuild": "^0.27.0",
  52. "monocart-coverage-reports": "^2.12.9",
  53. "packages-update": "^2.0.0",
  54. "poku": "^3.0.3-canary.ffab4562",
  55. "prettier": "^3.6.2",
  56. "terser": "^5.44.1",
  57. "tsx": "^4.20.6",
  58. "typescript": "^5.9.3"
  59. },
  60. "exports": {
  61. ".": {
  62. "import": {
  63. "types": "./lib/index.d.ts",
  64. "default": "./lib/index.mjs"
  65. },
  66. "require": {
  67. "types": "./lib/index.d.ts",
  68. "default": "./lib/index.js"
  69. }
  70. }
  71. },
  72. "keywords": [
  73. "lru",
  74. "cache",
  75. "caching",
  76. "hash",
  77. "node",
  78. "nodejs",
  79. "bun",
  80. "deno",
  81. "typescript",
  82. "browser",
  83. "fast",
  84. "lru-cache",
  85. "quick-lru"
  86. ]
  87. }