{"_id":"r2","_rev":"23-a3da545ed949236877adedbe3d1b052c","name":"r2","description":"HTTP client. Spiritual successor to request.","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"r2","version":"1.0.0","description":"Publish Web Pages and Components","main":"index.js","bin":{"r2":"bin/r2.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"BSD-2-Clause","devDependencies":{"gulp":"~3.8.10","chalk":"^0.5.0","del":"~0.1.3","browser-sync":"~1.7.2","gulp-rev-all":"~0.7.1","gulp-concat-css":"~1.1.1","vinyl-source-stream":"~1.0.0","watchify":"~2.1.1","browserify":"~6.3.3","gulp-notify":"~2.0.1","gulp-replace":"~0.5.0","gulp-assetpaths":"~0.1.1","gulp-changed":"~1.0.0","gulp-imagemin":"~2.0.0","gulp-awspublish":"0.0.23","gulp-rename":"~1.2.0","gulp-zip":"~2.0.2","tap":"~0.4.13","tape":"~3.0.3","run-sequence":"~1.0.2"},"dependencies":{"gulp-api-log":"~0.1.1","gulp-util":"~3.0.1","superagent":"~0.21.0","prompt":"~0.2.14","q":"~1.1.2","require-dir":"~0.1.0","jsforce":"~1.3.1","yargs":"~1.3.3","event-stream":"~3.1.7","through2":"~0.6.3","cheerio":"~0.18.0","gulp-autoprefixer":"~2.0.0","gulp-rimraf":"~0.1.1","rimraf":"~2.2.8","gulp":"~3.8.10","jszip":"~2.4.0","r2-config":"0.0.0","gulp-cached":"~1.0.1","gulp-minify-css":"~0.3.11","gulp-concat":"~2.4.2","open":"0.0.5","gulp-task-listing":"~1.0.0"},"_id":"r2@1.0.0","dist":{"shasum":"bd4a76ca42f0604202b968b9c620e9212414534b","tarball":"https://registry.npmjs.org/r2/-/r2-1.0.0.tgz","integrity":"sha512-aE8ankTnTpf4B24SdN4HsUtDM9xuOEJK2nH11khjcUOSBV8KfzOvTovZBqHiONzek69NOegJ9NXkarSmaYE4/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxuKWxBGa2IpKeuB0+Iq+vqGe3x0VPUKpJ5YQaJGAr3AiEAlBQD+MWtknbwI3Ocx/AaJUvkA0fIrRqM4uY2Lu2WN6I="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rodriguezartav","email":"roberto@rodriguezartavia.com"},"maintainers":[{"name":"rodriguezartav","email":"roberto@rodriguezartavia.com"}],"directories":{}},"2.0.0":{"name":"r2","version":"2.0.0","description":"<p>   <a href=\"https://www.patreon.com/bePatron?u=880479\">     <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" height=\"40px\" />   </a> </p>","main":"index.js","scripts":{"commit":"git-cz","test":"tap test/test-*.js --100","posttest":"standard","coverage":"tap test/test-*.js --coverage-report=lcov","postcoverage":"codecov","precommit":"npm test","prepush":"npm test","commitmsg":"validate-commit-msg","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"http://www.mikealrogers.com"},"license":"Apache-2.0","dependencies":{"caseless":"^0.12.0","node-fetch":"^2.0.0-alpha.8","typedarray-to-buffer":"^3.1.2"},"devDependencies":{"blob-to-buffer":"^1.2.6","body":"^5.1.0","browserify":"^14.4.0","codecov":"^2.3.0","commitizen":"^2.9.6","cz-conventional-changelog":"^2.0.0","fake-indexeddb":"^2.0.3","husky":"^0.14.3","lucass":"^4.1.0","semantic-release":"^8.0.3","standard":"^10.0.3","tap":"^10.7.2","validate-commit-msg":"^2.14.0"},"browser":{"node-fetch":false},"repository":{"type":"git","url":"git+https://github.com/mikeal/r2.git"},"gitHead":"9d38a05df187124062f4069b11e8c286068bb90c","bugs":{"url":"https://github.com/mikeal/r2/issues"},"homepage":"https://github.com/mikeal/r2#readme","_id":"r2@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"integrity":"sha512-qZ3W0BiiNCZ4EnixbsD1k2KgFk6mM97wRxDWMMtQwqUEmivju9kOyYsoO0hvhnof/niJ1/gIldSB3h2K86bZiQ==","shasum":"fadc6558ac96f230d3dfa5bc039f0f97771968d9","tarball":"https://registry.npmjs.org/r2/-/r2-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8jgn4qiVtDneO+575oj0LXXMKwHxLArSiKhdzvcZt4AiBS212gzzlJ1z8AYNKROJR0ZqysMpBNpj9Z4/Sk9CsNYA=="}]},"maintainers":[{"email":"mikeal.rogers@gmail.com","name":"mikeal"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r2-2.0.0.tgz_1506555721551_0.7894178293645382"},"directories":{}},"2.0.1":{"name":"r2","version":"2.0.1","description":"HTTP client. Spiritual successor to request.","main":"index.js","scripts":{"commit":"git-cz","test":"tap test/test-*.js --100","posttest":"standard","coverage":"tap test/test-*.js --coverage-report=lcov","coverage:upload":"nyc report --reporter=text-lcov | coveralls","precommit":"npm test","prepush":"npm test","commitmsg":"validate-commit-msg","semantic-release":"semantic-release"},"keywords":[],"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"http://www.mikealrogers.com"},"license":"Apache-2.0","dependencies":{"caseless":"^0.12.0","node-fetch":"^2.0.0-alpha.8","typedarray-to-buffer":"^3.1.2"},"devDependencies":{"blob-to-buffer":"^1.2.6","body":"^5.1.0","browserify":"^16.1.0","commitizen":"^2.9.6","coveralls":"^3.0.0","cz-conventional-changelog":"^2.0.0","fake-indexeddb":"^2.0.3","husky":"^0.14.3","lucass":"^4.1.0","semantic-release":"^15.0.0","standard":"^11.0.0","tap":"^11.1.1","validate-commit-msg":"^2.14.0"},"browser":{"node-fetch":false},"repository":{"type":"git","url":"git+https://github.com/mikeal/r2.git"},"gitHead":"c8ddb39c0d0b72a35cc7db49045639e30cad2a2f","bugs":{"url":"https://github.com/mikeal/r2/issues"},"homepage":"https://github.com/mikeal/r2#readme","_id":"r2@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"integrity":"sha512-EEmxoxYCe3LHzAUhRIRxdCKERpeRNmlLj6KLUSORqnK6dWl/K5ShmDGZqM2lRZQeqJgF+wyqk0s1M7SWUveNOQ==","shasum":"94cd802ecfce9a622549c8182032d8e4a2b2e612","tarball":"https://registry.npmjs.org/r2/-/r2-2.0.1.tgz","fileCount":8,"unpackedSize":21154,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLnpWZxogLfCSwViKWqAolk2mnh59012NLy1eYSD+77AIgUSjEN0XmrXwovP54SVnskAz37LM03j7ytxzuWLx7BfQ="}]},"maintainers":[{"email":"mikeal.rogers@gmail.com","name":"mikeal"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/r2_2.0.1_1522994872124_0.39795289204984474"},"_hasShrinkwrap":false}},"readme":"# r2\n\n<p>\n  <a href=\"https://www.patreon.com/bePatron?u=880479\">\n    <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" height=\"40px\" />\n  </a>\n</p>\n\n[![Build Status](https://travis-ci.org/mikeal/r2.svg?branch=master)](https://travis-ci.org/mikeal/r2) [![Coverage Status](https://coveralls.io/repos/github/mikeal/r2/badge.svg?branch=master)](https://coveralls.io/github/mikeal/r2?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/mikeal/r2.svg)](https://greenkeeper.io/)\n\nEarly in Node.js I wrote an HTTP client library called `request`. It evolved\nalong with Node.js and eventually became very widely depended upon.\n\nA lot has changed since 2010 and I've decided to re-think what a simple\nHTTP client library should look like.\n\nThis new library, `r2`, is a completely new approach from `request`.\n\n* Rather than being built on top of the Node.js Core HTTP library and\n  shimmed for the browser, `r2` is built on top of the browser's\n  Fetch API and shimmed for Node.js.\n* APIs are meant to be used with async/await, which means they are\n  based on promises.\n\n```javascript\nconst r2 = require('r2')\n\nlet html = await r2('https://www.google.com').text\n```\n\nSimple JSON support.\n\n```javascript\nlet obj = {ok: true}\n\nlet resp = await r2.put('http://localhost/test.json', {json: obj}).json\n```\n\nSimple headers support.\n\n```javascript\nlet headers = {'x-test': 'ok'}\n\nlet res = await r2('http://localhost/test', {headers}).response\n```\n\nBeing written to the Fetch API is a huge benefit for browser users.\n\nWhen running through browserify `request` is ~2M uncompressed and ~500K compressed. `r2` is only 66K uncompressed and 16K compressed.\n","maintainers":[{"email":"mikeal.rogers@gmail.com","name":"mikeal"}],"time":{"modified":"2023-07-21T15:51:58.625Z","created":"2015-02-01T20:32:54.155Z","1.0.0":"2015-02-01T20:34:34.897Z","1.1.0":"2017-09-27T23:24:45.601Z","2.0.0":"2017-09-27T23:42:02.477Z","2.0.1":"2018-04-06T06:07:52.298Z"},"readmeFilename":"README.md","license":"Apache-2.0","users":{"mikemaccana":true,"buzuli":true,"maslen":true,"diegorbaquero":true,"serge-nikitin":true,"junjiansyu":true,"ash":true,"chalker":true},"homepage":"https://github.com/mikeal/r2#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/mikeal/r2.git"},"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com","url":"http://www.mikealrogers.com"},"bugs":{"url":"https://github.com/mikeal/r2/issues"}}