Socket
Socket
Sign inDemoInstall

easy-promise

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-promise

Pnly Promises/A+ implementation


Version published
Maintainers
1
Created
Source

easy-promise

Pnly Promises/A+ implementation If you want to make a more powerful Promise class, it is recommended to use the extend-promise extension.

API

  • new Promise
  • Promise.defer
  • Promise.resolve
  • Promise.reject
  • Promise.all
  • .then
  • .catch
  • .finally

Install

npm
npm install easy-promise
bower
bower install easy-promise

Use

//Internal use of process.nextTick
var Ep = require('esay-promise')

//or Use setImmediate ,Used For high concurrency scenarios
var Ep = require('esay-promise/setImmediate')

//or setTimeout , Used for browser projects
var Ep = require('esay-promise/setTimeout')

In the no Promise browser

  • dist/easy-Promise.js (gzip 1.8k)
  • dist/easy-Promise.min.js (gzip 1.2k)

Keywords

FAQs

Package last updated on 10 Aug 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc