Node package built to improve native filesystem with Laravel like helpers.
npm add @kiwilan/filesystem
Or with pnpm:
pnpm add @kiwilan/filesystem
const path = FsPath.root("tests/test.md");
const exists = await FsFile.exists(path);
if (exists) {
const content = await FsFile.get(path);
}
pnpm package
Add to your project:
{
"dependencies": {
"@kiwilan/filesystem": "file:~/kiwilan-filesystem-*.tgz"
}
}