1.1.7 • Published 7 years ago

@lvchengbin/promise v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Promise

Promise implementation conforming the Promises/A+ for browsers.

Installation

$ npm i @lvchengbin/promise --save

Usage

NodeJS

const Promise = require( '@lvchengbin/promise' );

ES6

import Promise from '@lvchengbin/promise';

Using in Browsers

If you want to invoke the JavaScript file to browser directly, you can use promise.js. For old browsers which are not support ES5, you should use promise.bc.js.

<script src="./promise.bc.js"></script> 
<script>
    new Promise( function( resolve ) {
        setTimeout( function() {
            resolve( 100 );
        }, 1000 );
    } ).then( function( value ) {
        console.log( value );
    } );
</script>
1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago