Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/develephant/fsp

A simple Promise wrapper for fs-extra.
https://github.com/develephant/fsp

async await fs fs-extra promise wrapper

Last synced: 12 days ago
JSON representation

A simple Promise wrapper for fs-extra.

Awesome Lists containing this project

README

        

# `fsp`

### A simple Promise wrapper for fs-extra.

![js-badge](https://img.shields.io/badge/javascript-ES2017-brightgreen.svg)
![node-badge](https://img.shields.io/badge/node-v7-brightgreen.svg)

## Install

```
npm i @develephant/fsp --save
```

## Usage

```js
const fsp = require('@develephant/fsp')
```

## Example

```js
//in async function
async function copyIt(src, dest) {
await fsp.copy(src, dest)
.then(res => console.log(res))
.catch(err => console.error(err))
}
```

## Resources

__[fs-extra](https://github.com/jprichardson/node-fs-extra)__

__[promisify-node](https://github.com/nodegit/promisify-node/blob/master/package.json)__

---

#### `fsp` ⋆ © 2017 develephant ⋆ MIT license