Skip to content
ES6 Promise for Ruff (https://ruff.io) based on ThenFail v0.4 (https://github.com/vilic/thenfail).
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
typings
.gitignore
.rapignore
README.md
package.json
tsconfig.json

README.md

Promises/A+ logo

ES6 Promise based on ThenFail v0.4.

GitHub https://github.com/vilic/ruff-promise

Install

rap install promise

Usage

By requiring this module, it will try to attach Promise constructor to global if it's not present.

require('promise');

var promise = new Promise(function (resolve) {
    setTimeout(function () {
        resolve('Hello, Ruff!');
    });
});

promise.then(function (message) {
    console.log(message);
});

License

MIT License.

You can’t perform that action at this time.