package.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "lru.min",
  3. "version": "1.1.1",
  4. "description": "🔥 An extremely fast and efficient LRU cache for JavaScript with high compatibility (including Browsers) — 6.8KB.",
  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. "prebuild": "rm -rf ./browser ./lib",
  34. "build:browser": "tsx tools/browserfy.ts",
  35. "build:esm": "esbuild src/index.ts --outfile=lib/index.mjs --platform=node --target=node12 --format=esm",
  36. "build": "tsc && npm run build:esm && npm run build:browser",
  37. "test:node": "poku --node -p",
  38. "test:bun": "poku --bun -p",
  39. "test:deno": "poku --deno -p",
  40. "test:coverage": "mcr --import tsx --config mcr.config.ts npm run test:node",
  41. "lint": "npx @biomejs/biome lint && prettier --check .",
  42. "lint:fix": "npx @biomejs/biome lint --write && prettier --write .github/workflows/*.yml .",
  43. "update": "pu minor && npm i && npm audit fix",
  44. "postupdate": "npm run lint:fix",
  45. "size": "ls -lh lib/index.mjs | awk '{print $5}'"
  46. },
  47. "devDependencies": {
  48. "@babel/core": "^7.25.2",
  49. "@babel/preset-env": "^7.25.4",
  50. "@biomejs/biome": "^1.9.2",
  51. "@types/babel__core": "^7.20.5",
  52. "@types/node": "^22.5.5",
  53. "esbuild": "^0.23.1",
  54. "monocart-coverage-reports": "^2.10.9",
  55. "packages-update": "^2.0.0",
  56. "poku": "^2.7.0",
  57. "prettier": "^3.3.3",
  58. "terser": "^5.33.0",
  59. "tsx": "^4.19.1",
  60. "typescript": "^5.6.2"
  61. },
  62. "exports": {
  63. ".": {
  64. "import": {
  65. "types": "./lib/index.d.ts",
  66. "default": "./lib/index.mjs"
  67. },
  68. "require": {
  69. "types": "./lib/index.d.ts",
  70. "default": "./lib/index.js"
  71. }
  72. }
  73. },
  74. "keywords": [
  75. "lru",
  76. "cache",
  77. "caching",
  78. "hash",
  79. "node",
  80. "nodejs",
  81. "bun",
  82. "deno",
  83. "typescript",
  84. "browser",
  85. "fast",
  86. "lru-cache",
  87. "quick-lru"
  88. ]
  89. }