Socket
Socket
Sign inDemoInstall

superagent-jsonapify

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    superagent-jsonapify

A lightweight json-api client addon for superagent


Version published
Weekly downloads
309
decreased by-8.85%
Maintainers
1
Install size
1.36 MB
Created
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

FAQs

Last updated on 01 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc