# nicer-fs

> Collection of helpful utillity functions when dealing with files in node

Latest version **2.0.0** (published 2017-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install nicer-fs
pnpm add nicer-fs
yarn add nicer-fs
bun add nicer-fs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-10-09 |
| First published | 2016-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Marvin Hagemeister |
| Maintainers | marvinhagemeister |

## Links

- npm: https://www.npmjs.com/package/nicer-fs
- Repository: https://github.com/marvinhagemeister/nicer-fs
- Homepage: https://github.com/marvinhagemeister/nicer-fs#readme
- Issues: https://github.com/marvinhagemeister/nicer-fs/issues
- npm.io page: https://npm.io/package/nicer-fs

## Dependencies (8)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [glob](https://npm.io/package/glob.md) ^7.1.1
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [@types/ncp](https://npm.io/package/@types/ncp.md) ^2.0.0
- [@types/glob](https://npm.io/package/@types/glob.md) ^5.0.30
- [@types/node](https://npm.io/package/@types/node.md) ^8.0.33
- [@types/rimraf](https://npm.io/package/@types/rimraf.md) ^0.0.28

## Recent versions

- 2.0.0 (latest) — 2017-10-09
- 1.1.1 — 2017-06-14
- 1.1.0 — 2017-06-12
- 1.0.1 — 2017-06-05
- 1.0.0 — 2017-05-24
- 0.6.3 — 2017-04-26
- 0.6.2 — 2017-04-25
- 0.6.1 — 2017-04-25
- 0.6.0 — 2017-04-17
- 0.5.2 — 2017-04-15
- 0.5.0 — 2017-04-14
- 0.4.0 — 2017-04-05
- 0.3.1 — 2017-04-05
- 0.3.0 — 2017-04-05
- 0.2.0 — 2016-10-28
- … 1 more at https://npm.io/package/nicer-fs/versions

## 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

---
_Source: https://npm.io/package/nicer-fs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
