[![Build Status](https://travis-ci.org/rkatic/p.png?branch=master)](https://travis-ci.org/rkatic/p)

#P

A simple Promises/A+ library.

- Implements a subset of the the [Q](https://github.com/kriskowal/q) API.
- Passing the [Promises/A+ Compliance Test Suite](https://github.com/promises-aplus/promises-tests).
- Cross-Browser, Node.js and RequireJS ready.
- Small.
- [Fast](http://jsperf.com/wqfwewefewrw).

##API

P implements a subset of the [Q](https://github.com/kriskowal/q) API with few **differences**.

- `P(val)`
- `P.defer()`
- `P.all(promises)` (array **or object** of promises)
- `P.onerror`
- `P.nextTick(callback)`
- `deferred.promise`
- `deferred.resolve(value)`
- `deferred.reject(reason)`
- `promise.then(onFulfilled, onRejected)`
- `promise.done(onFulfilled, onRejected)`
- `promise.spread(onFulfilled, onRejected)`
- `promise.timeout(ms)`
- `promise.delay(ms)`

[![Build Status](https://travis-ci.org/rkatic/p.png?branch=master)](https://travis-ci.org/rkatic/p)

<a href="http://promises-aplus.github.com/promises-spec">
    <img src="http://promises-aplus.github.com/promises-spec/assets/logo-small.png"
         alt="Promises/A+ logo" title="Promises/A+ 1.0 compliant" />
</a>

#P

A simple Promises/A+ library.

- Implements a subset of the the [Q](https://github.com/kriskowal/q) API.
- Passing the [Promises/A+ Compliance Test Suite](https://github.com/promises-aplus/promises-tests).
- Cross-Browser, Node.js and RequireJS ready.
- Small.
- Simple.
- [Ultra Fast](http://jsperf.com/wqfwewefewrw/3).

##API

P implements a subset of the [Q](https://github.com/kriskowal/q) API with few **differences**.

- `P(val)`
- `P.defer()`
- `P.all(promises)` (array **or object** of promises)
- `P.onerror`
- `P.nextTick(callback)`
- `deferred.promise`
- `deferred.resolve(value)`
- `deferred.reject(reason)`
- `promise.then(onFulfilled, onRejected)`
- `promise.done(onFulfilled, onRejected)`
- `promise.spread(onFulfilled, onRejected)`
- `promise.timeout(ms)`
- `promise.delay(ms)`

Add P/A+ logo and update perfs.
Add P/A+ logo and update perfs.
