Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vilicvane/ruff-promise

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

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        


Promises/A+ logo

ES6 Promise based on [ThenFail](https://github.com/vilic/thenfail) v0.4.

GitHub

## Install

```sh
rap install promise
```

## Usage

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

```js
require('promise');

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

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

## License

MIT License.