JavaScript library for asynchronize operations
npm install myPromise> myPromise is a fast, small, and feature-rich JavaScript library.
For information on how to get started and how to use myPromise, please see myPromise's test file.
For source files and issues, please visit the myPromise repo.
Below are some of the most common ways to include myPromise.
#### Script tag
Download source codes and refer the src or dist js file.
``html`
#### AMD (Asynchronous Module Definition)
AMD is a module format built for the browser. For more information, we recommend require.js' documentation.
`js
define(["myPromise"], function(myPromise) {
});
`
To include myPromise in Node, first install with npm.
`sh`
npm install myPromise
For myPromise to work in Node, an environment supported ECMAScript6 is required.
`js``
var myPromise=require("myPromise");
var p=new myPromise((resolve,reject)=>{setTimeout(()=>{resolve({data:1}),2000);}).then(result=>{});
//p.then(...).catch(err=>{}).then()....