started with rollup-starter-project
npm install -S jhelper
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'))