@rush-fs/core 0.1.0-alpha.0
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/LICENSE +21 -0
- package/README.md +503 -0
- package/README.zh-CN.md +502 -0
- package/index.d.ts +251 -0
- package/index.js +786 -0
- package/package.json +126 -0
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rush-fs/core",
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "High-performance drop-in replacement for Node.js fs module, powered by Rust",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/CoderSerio/rush-fs.git"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"browser": "browser.js",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"fs",
|
|
14
|
+
"filesystem",
|
|
15
|
+
"file-system",
|
|
16
|
+
"performance",
|
|
17
|
+
"rust",
|
|
18
|
+
"napi",
|
|
19
|
+
"napi-rs",
|
|
20
|
+
"native",
|
|
21
|
+
"readdir",
|
|
22
|
+
"glob",
|
|
23
|
+
"readFile",
|
|
24
|
+
"writeFile"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"index.d.ts",
|
|
28
|
+
"index.js",
|
|
29
|
+
"browser.js"
|
|
30
|
+
],
|
|
31
|
+
"napi": {
|
|
32
|
+
"binaryName": "rush-fs",
|
|
33
|
+
"targets": [
|
|
34
|
+
"x86_64-pc-windows-msvc",
|
|
35
|
+
"x86_64-apple-darwin",
|
|
36
|
+
"x86_64-unknown-linux-gnu",
|
|
37
|
+
"aarch64-apple-darwin"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">= 18.0.0"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"registry": "https://registry.npmjs.org/",
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"artifacts": "napi artifacts",
|
|
49
|
+
"doc:dev": "pnpm -C docs dev",
|
|
50
|
+
"doc:build": "pnpm -C docs build",
|
|
51
|
+
"doc:start": "pnpm -C docs start",
|
|
52
|
+
"bench": "node --import @oxc-node/core/register benchmark/bench.ts",
|
|
53
|
+
"build": "napi build --platform --release",
|
|
54
|
+
"build:debug": "napi build --platform",
|
|
55
|
+
"format": "run-p format:prettier format:rs format:toml",
|
|
56
|
+
"format:prettier": "prettier . -w",
|
|
57
|
+
"format:toml": "taplo format",
|
|
58
|
+
"format:rs": "cargo fmt",
|
|
59
|
+
"fmt:check": "cargo fmt -- --check",
|
|
60
|
+
"lint": "oxlint .",
|
|
61
|
+
"prepublishOnly": "napi prepublish -t npm",
|
|
62
|
+
"test": "ava",
|
|
63
|
+
"preversion": "napi build --platform && git add .",
|
|
64
|
+
"version": "napi version",
|
|
65
|
+
"prepare": "husky"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@emnapi/core": "^1.5.0",
|
|
69
|
+
"@emnapi/runtime": "^1.5.0",
|
|
70
|
+
"@napi-rs/cli": "^3.2.0",
|
|
71
|
+
"@oxc-node/core": "^0.0.34",
|
|
72
|
+
"@taplo/cli": "^0.7.0",
|
|
73
|
+
"@tybys/wasm-util": "^0.10.0",
|
|
74
|
+
"@types/node": "^20.0.0",
|
|
75
|
+
"ava": "^6.4.1",
|
|
76
|
+
"chalk": "^5.6.2",
|
|
77
|
+
"fast-glob": "^3.3.3",
|
|
78
|
+
"glob": "^13.0.0",
|
|
79
|
+
"husky": "^9.1.7",
|
|
80
|
+
"lint-staged": "^16.1.6",
|
|
81
|
+
"mitata": "^1.0.34",
|
|
82
|
+
"npm-run-all2": "^8.0.4",
|
|
83
|
+
"oxlint": "^1.14.0",
|
|
84
|
+
"prettier": "^3.6.2",
|
|
85
|
+
"typescript": "^5.9.2"
|
|
86
|
+
},
|
|
87
|
+
"lint-staged": {
|
|
88
|
+
"*.@(js|ts|tsx)": [
|
|
89
|
+
"oxlint --fix"
|
|
90
|
+
],
|
|
91
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
92
|
+
"prettier --write"
|
|
93
|
+
],
|
|
94
|
+
"*.toml": [
|
|
95
|
+
"taplo format"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"ava": {
|
|
99
|
+
"extensions": {
|
|
100
|
+
"ts": "module"
|
|
101
|
+
},
|
|
102
|
+
"timeout": "2m",
|
|
103
|
+
"workerThreads": false,
|
|
104
|
+
"environmentVariables": {
|
|
105
|
+
"OXC_TSCONFIG_PATH": "./__test__/tsconfig.json"
|
|
106
|
+
},
|
|
107
|
+
"nodeArguments": [
|
|
108
|
+
"--import",
|
|
109
|
+
"@oxc-node/core/register"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"prettier": {
|
|
113
|
+
"printWidth": 120,
|
|
114
|
+
"semi": false,
|
|
115
|
+
"trailingComma": "all",
|
|
116
|
+
"singleQuote": true,
|
|
117
|
+
"arrowParens": "always"
|
|
118
|
+
},
|
|
119
|
+
"packageManager": "pnpm@9.15.4",
|
|
120
|
+
"optionalDependencies": {
|
|
121
|
+
"@rush-fs/core-win32-x64-msvc": "0.1.0-alpha.0",
|
|
122
|
+
"@rush-fs/core-darwin-x64": "0.1.0-alpha.0",
|
|
123
|
+
"@rush-fs/core-linux-x64-gnu": "0.1.0-alpha.0",
|
|
124
|
+
"@rush-fs/core-darwin-arm64": "0.1.0-alpha.0"
|
|
125
|
+
}
|
|
126
|
+
}
|