🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

promiseme

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promiseme

Simple implementation of Promises/A+

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

promise-me

This is really small implementation of promises/A+ written just to study promises a little bit more.

Installation

You can either use npm

$ npm install promiseme

or just simply use the promiseme.js file.

Usage

Create a deferred

var d = promiseme.deferred();

Fulfill a deferred

d.fulfill(value)

Reject a deferred

d.reject(reason)

Get a promise from a deferred

d.promise

Use then

d.then(onFulfilled, onRejected)

Docs

For more information about how promises works contact Promises/A+

Build status

Build Status

Keywords

promise

FAQs

Package last updated on 25 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts