1.2.1 • Published 3 years ago
chor-promise v1.2.1
chor-promise
A simple implementation of Promise/A+ and its built-in methods.
Usage
install it:
npm i chor-promise -D
use it in Node environment:
const MyPromise = require('chor-promise')
new MyPromise((resolve,reject) => {
resolve('Hello MyPromise!')
}).then(res => {
console.log(res)
})
use it in browser environment:
import MyPromise from 'chor-promise'
new MyPromise((resolve,reject) => {
resolve('Hello MyPromise!')
}).then(res => {
console.log(res)
})