Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/develephant/fsp
- Owner: develephant
- License: other
- Created: 2017-03-22T14:12:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T14:26:29.000Z (almost 8 years ago)
- Last Synced: 2024-12-15T14:46:37.999Z (18 days ago)
- Topics: async, await, fs, fs-extra, promise, wrapper
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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