Love Letter is a small Promise library for Node.JS that aims to be fast, while conforming to the Promises/A+ specification.
Installation
npm install love-letter
Example
Standard promise usage.
const LoveLetter = require('love-letter');
function doSomethingReallyLong() {
return new LoveLetter(resolve => {
let res = somethingReallyIntensive();
resolve(res);
});
}
doSomethingReallyLong().then(console.log);
To-Do
- Become fully compliant with the Promises/A+ specification.
- Become faster while still being compliant.