Skip to content

vilicvane/ruff-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ES6 Promise for Ruff (https://ruff.io) based on ThenFail v0.4 (https://github.com/vilic/thenfail).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published