REST API client library
JavaScript
Latest commit 496038a Nov 18, 2016 @simov 3.0.1

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