1.2.1 • Published 7 years ago

@compositor/qp v1.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

qp Build Status js-standard-style

A light, stateful wrapper for promises.

installation

npm install --save @compositor/qp

usage

var qp = require('@compositor/qp')

const p = qp(new Promise((resolve, reject) => {}))

p.isRejected()
p.isResolved()
p.isFinished()
qp.all
var qp = require('@compositor/qp')

const px = qp.all([
  new Promise((resolve, reject) => resolve()),
  new Promise((resolve, reject) => setTimeout(resolve, 100)),
  new Promise((resolve, reject) => reject())
])

px.isRejected()
px.isResolved()
px.isFinished()
px.status()

contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by (@getcompositor).