Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

love-letter

ClarityMoe49MITdeprecated0.1.5TypeScript support: included

This library is no longer maintained. You're better off using something like bluebird

A small(ish) Promise library, that aims to be speedy.

readme

Love Letter logo

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.