Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 2.29 KB

README.md

File metadata and controls

66 lines (50 loc) · 2.29 KB

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"
  }
}