0.0.5 • Published 4 years ago

@bojangles/exfs v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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