create-promise
v1.1.0
Published
Simple Promise creation wrapper, so you dont need the new keyword
Maintainers
Readme
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 [email protected]
