jhelper

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i jhelper

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mikhail.angelov