Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

superagent-jsonapify

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Issues
File Explorer

Advanced tools

superagent-jsonapify

A lightweight json-api client addon for superagent

    1.4.5latest

Version published
Maintainers
1
Yearly downloads
12,479
decreased by-28.56%

Weekly downloads

Readme

Source

superagent-jsonapify

NPM

Dependencies

A lightweight json-api client addon for superagent. If you don't know about jsonapify or the JSON-API format, you should have a look.

Usage

ES2015 style

import superagent from 'superagent'; import superagentJsonapify from 'superagent-jsonapify'; superagentJsonapify(superagent); const request = superagent.get('/api/videos?include=comments') .then(function(response) { const body = response.body; const video = body.data[0]; const comments = video.comments; });

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc