node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

@develephant/fsp

fsp

A simple Promise wrapper for fs-extra.

Install

npm i @develephant/fsp --save

Usage

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

Example

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

promisify-node


fsp ⋆ © 2017 develephant ⋆ MIT license