0.1.0 • Published 4 years ago

lhfs v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

lhfs

Lightweight file system bindings for node.

API reference

Refer to the lhfs.d.ts file.

Benchmarks

Note: These aren't stable, can be changeable for other systems, it is only for comparison.

fs.readFileSync as string x1000 x 103 ops/sec ±0.92% (74 runs sampled)
> lhfs.readFile as string x1000 x 191 ops/sec ±0.63% (86 runs sampled)

> fs.readFileSync as buffer x1000 x 189 ops/sec ±0.61% (84 runs sampled)
lhfs.readFile as buffer x1000 x 174 ops/sec ±0.34% (86 runs sampled)

> fs.readlinkSync x1000 x 694 ops/sec ±0.77% (90 runs sampled)
lhfs.readLink x1000 x 386 ops/sec ±2.73% (83 runs sampled)

> fs.readdirSync x1000 x 184 ops/sec ±2.91% (76 runs sampled)
lhfs.readDirectory x1000 x 107 ops/sec ±1.56% (76 runs sampled)

> fs.lstatSync x1000 x 475 ops/sec ±2.91% (84 runs sampled)
lhfs.lstat x1000 x 380 ops/sec ±2.90% (83 runs sampled)

fs.existsSync x1000 x 700 ops/sec ±2.95% (83 runs sampled)
> lhfs.exists x1000 x 916 ops/sec ±1.95% (89 runs sampled)

License

Refer to the LICENSE file.

0.1.0

4 years ago