1.0.1 • Published 7 years ago

jhelper v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

jhelper

build status

NPM

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'))