New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

p-promise

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-promise - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "p-promise",
"version": "0.0.1",
"version": "0.0.2",
"description": "Simple promise-a library.",

@@ -5,0 +5,0 @@ "main": "p.js",

[![Build Status](https://secure.travis-ci.org/rkatic/p.png)](http://travis-ci.org/rkatic/p)
P
=
Simple promise-a library.
#P
A simple Promises/A+ library.
- A subset of the [Q](/kriskowal/q) library.
- Passing the [Promises/A+ Compliance Test Suite](/promises-aplus/promises-tests).
- Small.
- Fast.
##API
P is a subset of [Q](/kriskowal/q)
- `P(val)` same as `P.resolve(val)`
- `P.reject(reason)`
- `P.defer()`
- `P.all(promises)`
- `P.onerror`
- `P.nextTick(callback)`
- `deferred.promise`
- `deferred.fulfill(value)`
- `deferred.reject(reason)`
- `promise.then(onFulfilled, onRejected)`
- `promise.done(onFulfilled, onRejected)`
- `promise.spread(onFulfilled, onRejected)`
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc