{"name":"superagent","version":"1.2.0","description":"elegant & feature rich browser / node HTTP with a fluent API","scripts":{"test":"make test"},"keywords":["http","ajax","request","agent"],"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"contributors":[{"name":"Hunter Loftis","email":"hunter@hunterloftis.com"}],"repository":{"type":"git","url":"git://github.com/visionmedia/superagent.git"},"dependencies":{"qs":"2.3.3","formidable":"1.0.14","mime":"1.3.4","component-emitter":"1.1.2","methods":"1.0.1","cookiejar":"2.0.1","debug":"2","reduce-component":"1.0.1","extend":"1.2.1","form-data":"0.2.0","readable-stream":"1.0.27-1"},"devDependencies":{"basic-auth-connect":"~1.0.0","better-assert":"~1.0.1","body-parser":"~1.9.2","cookie-parser":"~1.3.3","express":"~4.9.8","express-session":"~1.9.1","mocha":"~2.0.1","should":"~3.1.3","zuul":"~1.19.0","browserify":"~6.3.2","Base64":"~0.3.0"},"browser":{"./lib/node/index.js":"./lib/client.js","emitter":"component-emitter","reduce":"reduce-component","./test/support/server.js":"./test/support/blank.js"},"component":{"scripts":{"superagent":"lib/client.js"}},"main":"./lib/node/index.js","engines":{"node":">= 0.8"},"readme":"# SuperAgent [![Build Status](https://travis-ci.org/visionmedia/superagent.svg?branch=master)](https://travis-ci.org/visionmedia/superagent)\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/shtylman-superagent.svg)](https://saucelabs.com/u/shtylman-superagent)\n\nSuperAgent is a small progressive __client-side__ HTTP request library, and __Node.js__ module with the same API, sporting many high-level HTTP client features. View the [docs](http://visionmedia.github.com/superagent/).\n\n![super agent](http://f.cl.ly/items/3d282n3A0h0Z0K2w0q2a/Screenshot.png)\n\n## Installation\n\nnode:\n\n```\n$ npm install superagent\n```\n\ncomponent:\n\n```\n$ component install visionmedia/superagent\n```\n\nWorks with [browserify](https://github.com/substack/node-browserify) and should work with [webpack](https://github.com/visionmedia/superagent/wiki/Superagent-for-Webpack)\n\n```js\nrequest\n  .post('/api/pet')\n  .send({ name: 'Manny', species: 'cat' })\n  .set('X-API-Key', 'foobar')\n  .set('Accept', 'application/json')\n  .end(function(err, res){\n\n  });\n```\n\n## Supported browsers\n\nTested browsers:\n\n- Latest Android\n- Latest Firefox\n- Latest Chrome\n- IE9 through latest\n- Latest iPhone\n- Latest Safari\n\nEven though IE9 is supported, a polyfill `window.btoa` is needed to use basic auth.\n\n# Plugins\n\nSuperagent is easily extended via plugins.\n\n```js\nvar nocache = require('no-cache');\nvar request = require('superagent');\nvar prefix = require('superagent-prefix')('/static');\n\nprefix(request); // Prefixes *all* requests\n\nrequest\n.get('/some-url')\n.use(nocache) // Prevents caching of *only* this request\n.end(function(err, res){\n    // Do something\n});\n```\n\nExisting plugins:\n * [superagent-no-cache](https://github.com/johntron/superagent-no-cache) - prevents caching by including Cache-Control header\n * [superagent-prefix](https://github.com/johntron/superagent-prefix) - prefixes absolute URLs (useful in test environment)\n * [superagent-mock](https://github.com/M6Web/superagent-mock) - simulate HTTP calls by returning data fixtures based on the requested URL\n\nPlease prefix your plugin with `superagent-*` so that it can easily be found by others.\n\nFor superagent extensions such as couchdb and oauth visit the [wiki](https://github.com/visionmedia/superagent/wiki).\n\n## Running node tests\n\nInstall dependencies:\n\n```shell\n$ npm install\n```\nRun em!\n\n```shell\n$ make test\n```\n\n## Running browser tests\n\nInstall dependencies:\n\n```shell\n$ npm install\n```\n\nStart the test runner:\n\n```shell\n$ make test-browser-local\n```\n\nVisit `http://localhost:4000/__zuul` in your browser.\n\nEdit tests and refresh your browser. You do not have to restart the test runner.\n\n## License\n\nMIT\n","readmeFilename":"Readme.md","bugs":{"url":"https://github.com/visionmedia/superagent/issues"},"homepage":"https://github.com/visionmedia/superagent","_id":"superagent@1.2.0","_shasum":"aac262533c1ec5538144a11371cd36f244a574fd","_from":"https://registry.npmjs.org/superagent/-/superagent-1.2.0.tgz","_resolved":"https://registry.npmjs.org/superagent/-/superagent-1.2.0.tgz"}