Skip to content

Node package to improve native filesystem with Laravel like helpers.

License

Notifications You must be signed in to change notification settings

kiwilan/node-filesystem

Repository files navigation

Kiwilan's Node filesystem

Banner with monitor with IDE in background and Kiwilan's Node filesystem title

node version downloads license tests codecov

Node package built to improve native filesystem with Laravel like helpers.

Installation

npm add @kiwilan/filesystem

Or with pnpm:

pnpm add @kiwilan/filesystem

Usage

const path = FsPath.root("tests/test.md");
const exists = await FsFile.exists(path);

if (exists) {
  const content = await FsFile.get(path);
}

Build locally

pnpm package

Add to your project:

{
  "dependencies": {
    "@kiwilan/filesystem": "file:~/kiwilan-filesystem-*.tgz"
  }
}