@ticketmaster/superagent-jsonp

0.0.2-tm3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2-tm3
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2-tm3
    4

Package Sidebar

Install

npm i @ticketmaster/superagent-jsonp

Weekly Downloads

4

Version

0.0.2-tm3

License

WTFPL

Last publish

Collaborators

  • tmtech
  • traynak
  • sk89q
  • george.yue
  • tm_platinum
  • chestersound
  • taddei
  • tmsean
  • iccpfrontend
  • tm1-marketing
  • resaleengineering
  • ccpdiscovery
  • tm1salesfrontend
  • lndtfrontend
  • b2bauroraextensionsdevelopers
  • livn.spons.frontend
  • dansel
  • mikeanama
  • mindosilalahi
  • tmlabs.projects
  • secureaccountsnpm
  • edpteam
  • eibfrontend
  • lndigital
  • safetix_ui_tool
  • namme
  • corpwebsites
  • presencefrontend
  • tm1reports
  • afterpay-ticketmaster
  • tm-intl-enterprise
  • wojciech.jawor
  • zbremantm