fs-sync-utils
This package makes file operations easy to use.
Features
- Read a file with
const str = read('file.txt')
- Write a file with
write('out.txt', 'some text')
- Remove a file with
remove('file.txt')
- Check if a file exists with
if (exists('file.txt')) {…
Usage
$ npm install --save fs-sync-utils
const read write exists remove = // write // existsif // read const str = // remove
Related Packages
files-in-dir Get file names in a directory
dirs-in-dir Get directory names in a directory