jhelper
v1.0.1
Published
jhelper
Downloads
26
Readme
jhelper
started with rollup-starter-project
install
npm install -S jhelper
Usage
promisify
Wrap node.js style callback API with function, which return promise
const j = require('jhelper')
const fs = require('fs')
const mkdir = j(fs,'mkdir')
mkdir('test')
.then(()=>console.log('test is created'))
.catch(()=>console.log('failed to create test'))