Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marvinhagemeister/nicer-fs
A completely async and better file system than node's internal fs module.
https://github.com/marvinhagemeister/nicer-fs
fs fs-extra node promise
Last synced: 2 months ago
JSON representation
A completely async and better file system than node's internal fs module.
- Host: GitHub
- URL: https://github.com/marvinhagemeister/nicer-fs
- Owner: marvinhagemeister
- License: mit
- Created: 2016-10-19T23:53:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-09T08:53:01.000Z (about 7 years ago)
- Last Synced: 2024-10-17T21:44:42.823Z (2 months ago)
- Topics: fs, fs-extra, node, promise
- Language: TypeScript
- Homepage:
- Size: 40 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Nicer FS
Nicer fs is a collection of common file system function brought to the age of
promises. Main differences compared to [fs-extra](https://github.com/jprichardson/node-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