kiwilan / node-filesystem

Node package to improve native filesystem with Laravel like helpers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Node package to improve native filesystem with Laravel like helpers.

License:BSD 2-Clause "Simplified" License


Languages

Language:TypeScript 100.0%