Awesome Open Source
Awesome Open Source
Sponsorship

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


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (66,040
nodejs (3,448
api (1,506
node (896
http (840
js (465
rest (450
client (349
https (190

Find Open Source By Browsing 7,000 Topics Across 59 Categories