Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@bojangles/exfs

bojangles-m11MIT0.0.5

Extends fs library

fs, extfs, file, filesystem, utils, directory

readme

exfs

A module extends build-in fs module and makes file system manipulation a bit easier.

Install

$ npm i @bojangles/exfs

Usage

async Functions
aMkdir(path); // makes directories and their contents recursively
aCopy(from, to);
aWrite(path, data);
aAppend(path, data);
sync Functions
isFile(path);
isDir(path);
read(file); // path to file
write(file, data); // path to file
ld(dir); // list directories
lf(path, opt); // list files
lfDeep(path, opt); // List files recursively
mkdir(path); // makes directories and their content recursively
rm(path); // removes directories and their content recursively

License

MIT