1.1.0 • Published 7 years ago
create-promise v1.1.0
createPromise
Simple Promise creation wrapper, so you dont need the new keyword
instructions
install
Make sure you've install Nodejs and run npm install create-promise
in your project directory.
usage
const createPromise = require('create-promise')
const myPromise = createPromise((resolve, reject) => setTimeout(() => resolve('hi'), 2000))
myPromise
.then((msg) => console.log(msg))
.catch((err) => console.log(err)
contributors
Frank van Vuuren frank@dynngroup.com