JavaScript
Clone or download
Latest commit 2f982de Jun 2, 2017
Permalink
Failed to load latest commit information.
config
lib Add defer option for async configuration Dec 21, 2016
test Add defer option for async configuration Dec 21, 2016
.editorconfig Initial commit Feb 7, 2016
.eslintrc
.gitignore
.travis.yml
CHANGELOG.md Update changelog Jun 2, 2017
LICENSE Update meta files Apr 13, 2016
README.md Update codecov badge url Jul 17, 2016
index.js Merge the basic and query api modules May 2, 2016
package.json

README.md

Purest

npm-version travis-ci coveralls-status codecov-status

Purest is a generic REST API client library that can be used with any REST API, any HTTP client library, and any Promise implementation:

var request = require('request')
var promise = require('bluebird')
var purest = require('purest')({request, promise})
var config = require('@purest/providers')
var google = purest({provider: 'google', config})

var req = google
  .query('youtube')
  .select('channels')
  .where({forUsername: 'CaseyNeistat'})
  .auth('[ACCESS_TOKEN]')
  .request()

req
  .catch((err) => {})
  .then((result) => {})

Documentation for Purest v3.x

Documentation for Purest v2.x

Migrating from Purest v2.x to v3.x