Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ticketmaster/superagent-jsonp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ticketmaster/superagent-jsonp

Wrap a sweet jsonp filling in a savoury superagent wrapper

latest
Source
npmnpm
Version
0.0.2-tm3
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

superagent-jsonp

Adds jsonp behaviour to superagent.

To use with browserify

First install with npm

npm i superagent-jsonp --save

Then use like so;

var superagent = require('superagent');

require('superagent-jsonp')(superagent);

superagent.get('http://example.com/foo.json').jsonp().end(function(){
  // everything is as normal
});

To use with bower

First install:

bower i superagent-jsonp --save

Include it from your bower components in the usual way

Then use pretty much as you do above

superagentJSONP(superagent);

superagent.get('http://example.com/foo.json').jsonp().end(function(){
  // everything is as normal
});

Changes from upstream

Forked from: https://github.com/lamp/superagent-jsonp

Keywords

jsonp

FAQs

Package last updated on 19 Aug 2015

Did you know?

Socket

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