As we well know,Promise is a new solution for asynchronous programming. Promise can replace callback functions and events programming method. this Library will achieve Promise container base on Promise/A+ rule.
npm install mario-promise
let MarioPromise = require('./libs/index')
let test = new MarioPromise((reslove, reject) => {
setTimeout(function (params) {
reslove(1)
})
}).then(res => {
console.log(res)
})