Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 555 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 555 Bytes
Promises/A+ logo

Simple Promise

Promises/A+ compliant JavaScript promise implementation

Installation

npm install simple-promise

Usage

var Promise = require('simple-promise');

new Promise((resolve, reject) => {
    resolve('success');
}).then((result) => {
    console.log(result);
});