fast-map-cache 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "fast-map-cache",
3
+ "version": "1.0.1",
4
+ "description": "High-performance TypeScript LRU cache (with optional TTL) for Node.js & browsers.",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "./dist/main.js",
9
+ "module": "./dist/main.mjs",
10
+ "types": "./dist/main.d.ts",
11
+ "files": [
12
+ "dist",
13
+ "README.md",
14
+ "README_zh-CN.md",
15
+ "LICENSE"
16
+ ],
17
+ "sideEffects": false,
18
+ "engines": {
19
+ "node": ">=14"
20
+ },
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/main.mjs",
24
+ "require": "./dist/main.js"
25
+ },
26
+ "./package.json": "./package.json"
27
+ },
28
+ "scripts": {
29
+ "test": "vitest run",
30
+ "test:coverage": "vitest run --coverage",
31
+ "lint": "oxlint",
32
+ "build": "pnpm lint && pnpm type-check && tsdown",
33
+ "bench": "vitest bench --run",
34
+ "prepare": "simple-git-hooks install",
35
+ "run:example": "npx tsx examples/01-basic-example.ts",
36
+ "type-check": "tsc --noEmit",
37
+ "format": "prettier --write .",
38
+ "gen-report": "pnpm bench && tsx scripts/generate-performance-report.ts",
39
+ "changeset": "changeset",
40
+ "version:packages": "changeset version",
41
+ "release": "pnpm build && changeset publish"
42
+ },
43
+ "keywords": [
44
+ "cache",
45
+ "lru",
46
+ "ttl",
47
+ "fast",
48
+ "typescript",
49
+ "node",
50
+ "browser",
51
+ "lru-cache",
52
+ "ttl-cache",
53
+ "memory-cache",
54
+ "in-memory-cache"
55
+ ],
56
+ "author": {
57
+ "name": "crper",
58
+ "url": "https://github.com/crper"
59
+ },
60
+ "license": "MIT",
61
+ "devDependencies": {
62
+ "@changesets/cli": "^2.29.5",
63
+ "@commitlint/cli": "^19.8.1",
64
+ "@commitlint/config-conventional": "^19.8.1",
65
+ "@vitest/coverage-v8": "^3.2.4",
66
+ "lint-staged": "^16.1.2",
67
+ "oxlint": "^1.2.0",
68
+ "pnpm": "^10.12.2",
69
+ "prettier": "^3.6.0",
70
+ "simple-git-hooks": "^2.13.0",
71
+ "tsdown": "^0.12.8",
72
+ "tsx": "^4.20.3",
73
+ "typescript": "^5.8.3",
74
+ "vitest": "^3.2.4"
75
+ },
76
+ "simple-git-hooks": {
77
+ "pre-commit": "npx lint-staged",
78
+ "commit-msg": "npx --no-install commitlint --edit \"$1\""
79
+ },
80
+ "lint-staged": {
81
+ "*.{js,ts,json,md}": "prettier --write",
82
+ "*.{js,ts}": [
83
+ "oxlint",
84
+ "vitest related --run"
85
+ ]
86
+ },
87
+ "repository": {
88
+ "type": "git",
89
+ "url": "https://github.com/crper/fast-map-cache.git"
90
+ },
91
+ "bugs": {
92
+ "url": "https://github.com/crper/fast-map-cache/issues"
93
+ },
94
+ "homepage": "https://github.com/crper/fast-map-cache#readme"
95
+ }