nicer-fs
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Nicer FS

Nicer fs is a collection of common file system function brought to the age of promises. Main differences compared to fs-extra is that nicer-fs is lighter.

API

  • find - find file by glob pattern
  • readFile - promisified fs.readFile
  • writeFile - promisified fs.writeFile
  • readJson - safely read json files
  • writeJson - safely write json files
  • readDir - promisified fs.readDir
  • mkdir - same as mkdir -p
  • copy - same as cp [source] [target], works for files and folders
  • remove - same as rm -rf myfile myfolder
  • exists - check if a file or folder exists
  • replaceExtension - easily replace a file extension
  • getCallerFileName - get the name of the file a function is called in

Readme

Keywords

none

Package Sidebar

Install

npm i nicer-fs

Weekly Downloads

219

Version

2.0.0

License

MIT

Last publish

Collaborators

  • marvinhagemeister