You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fork of [fs-ext](https://github.com/baudehlo/node-fs-ext) that ships prebuilt binaries for all major platforms and adds Windows-specific file locking APIs.
6
4
7
-
Extras not included in Node's fs module.
5
+
## Why this fork?
8
6
9
-
**Note**:
7
+
The original `fs-ext` package requires compilation during `npm install`, which can fail in environments without build tools. This fork:
10
8
11
-
- From `v2.0.0` onwards, module doesn't override `fs` and `constants` Node.js core modules. Instead
12
-
import functions and constants directly:
13
-
14
-
```js
15
-
const { flock, constants } =require('fs-ext');
16
-
// or
17
-
constfsExt=require('fs-ext');
18
-
// fsExt.flock
19
-
// fsExt.constants
20
-
```
21
-
22
-
- From `v1.0.0` onwards, fs.utime and fs.utimeSync have been removed.
23
-
Use fs.utimes and fs.utimesSync instead.
9
+
-**Ships prebuilt binaries** for macOS (x64, arm64), Linux (x64, arm64), and Windows (x64, arm64)
10
+
-**Adds `LockFileEx`/`UnlockFileEx`** Windows APIs for byte-range file locking
11
+
-**Supports Node.js 20+** and Electron
12
+
-**Falls back to local compilation** if no prebuilt binary matches your platform
24
13
25
14
## Installation
26
15
27
-
Install via npm:
28
-
29
16
```sh
30
-
npm install fs-ext
17
+
npm install @wp-playground/fs-ext
31
18
```
32
19
33
20
## Usage
34
21
35
-
fs-ext imports all of the methods from the core 'fs'module, so you don't
0 commit comments