{"bugs":{"url":"https://github.com/devsnek/snekfetch/issues"},"dist":{"shasum":"eed04cac5288e83dbb5a75319ee9c7ea6d411e97","tarball":"https://registry.npmjs.org/snekfetch/-/snekfetch-4.0.0-beta.1.tgz","fileCount":39,"integrity":"sha512-bYmsis4bH0TZB0UUvQUDhbbL7CfbgAhHJ3zq6TelYXdi3qR5mpv1Iu183tP7gimnKZO6ssnngb3khnCqvgJyqQ==","signatures":[{"sig":"MEQCIHI9Q/KAoYmaNxfQkxxkfsBOTGqB2EzP+bwB8oHNnBswAiB0H7xt9hHX/Q2P2Xv/n8zcfjynKzX7AuAd3KxXBmcApg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106622},"jest":{"verbose":true,"collectCoverage":true,"collectCoverageFrom":["src/**/*.js","!src/node/mimeOfBuffer.js","!src/node/transports/http2.js"]},"main":"src/index","name":"snekfetch","unpkg":"browser.js","author":{"name":"Gus Caplan","email":"me@gus.host"},"module":"src/index.mjs","readme":"[![npm][download-badge]][npm]\n[![David][dep-badge]][dep-link]\n[![Coverage Status][coverage-badge]][coverage-link]\n[![Build Status][build-badge]][build-link]\n\n[![NPM][large-badge]][stats-link]\n\n# snekfetch <sup>[![Version Badge][version-badge]][npm]</sup>\n\nSnekfetch is a fast, efficient, and user-friendly library for making HTTP requests.\n\nIt also supports native alpn negotation in node for effecient http/2 requests!\n\nThe API was inspired by superagent, however it is much smaller and faster.\nIn fact, in browser, it is a mere 4.0kb.\n\nDocumentation is available at https://snekfetch.js.org/\n\n## Some examples\n\n```javascript\nconst request = require('snekfetch');\n\nrequest.post('https://httpbin.org/post')\n  .send({ usingGoodRequestLibrary: true })\n  .then(r => console.log(r.body)); // r.body is object from json response\n\nrequest.get('https://s.gc.gy/o-SNAKES.jpg')\n  .then(r => fs.writeFile('download.jpg', r.body)); // r.body is buffer\n\nrequest.get('https://s.gc.gy/o-SNAKES.jpg')\n  .pipe(fs.createWriteStream('download.jpg')); // pipes\n```\n\nAvailable for browser as UMD from [unpkg][unpkg-link]\n```html\n<script src=https://unpkg.com/snekfetch></script>\n```\n\n[npm]: https://npmjs.org/package/snekfetch\n[large-badge]: https://nodei.co/npm/snekfetch.png?downloads=true&downloadRank=true&stars=true\n[stats-link]: https://nodei.co/npm/snekfetch/\n[version-badge]: https://versionbadge.now.sh/snekfetch.svg\n[download-badge]: https://img.shields.io/npm/dt/snekfetch.svg?maxAge=3600\n[build-badge]: https://api.travis-ci.org/devsnek/snekfetch.svg?branch=master\n[build-link]: https://travis-ci.org/devsnek/snekfetch\n[dep-badge]: https://david-dm.org/devsnek/snekfetch.svg\n[dep-link]: https://david-dm.org/devsnek/snekfetch\n[coverage-badge]: https://coveralls.io/repos/github/devsnek/snekfetch/badge.svg?branch=master\n[coverage-link]: https://coveralls.io/github/devsnek/snekfetch?branch=master\n[unpkg-link]: https://unpkg.com/\n","browser":{"./src/meta.js":false,"./src/node/index.js":false},"gitHead":"57b4e674157760a2de56b1108590fdc0c2326e55","license":"MIT","scripts":{"docs":"node docs.js","lint":"eslint . --cache --ext=mjs,js","test":"npm run lint && node ./node_modules/.bin/jest","build:browser":"webpack","prepublishOnly":"npm run lint && npm run test && npm run build:browser","test:coveralls":"cat ./coverage/lcov.info | coveralls"},"_npmUser":{"name":"snek","email":"me@gus.host"},"homepage":"https://snekfetch.js.org/","jsdelivr":"browser.js","repository":{"url":"git+https://github.com/devsnek/snekfetch.git","type":"git"},"_npmVersion":"5.7.1","description":"Just do http requests without all that weird nastiness from other libs","directories":{},"maintainers":[{"name":"snek","email":"me@gus.host"}],"_nodeVersion":"9.8.0","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^21.2.1","docma":"^1.5.1","eslint":"^4.8.0","webpack":"^3.8.1","coveralls":"^3.0.0","node-fetch":"^2.0.0","@snek/syncify":"0.0.6","jsdoc-dynamic":"^1.0.4","json-filter-loader":"^1.0.0","uglifyjs-webpack-plugin":"^1.0.0-beta.2"},"_npmOperationalInternal":{"tmp":"tmp/snekfetch_4.0.0-beta.1_1521077016416_0.5568750236264666","host":"s3://npm-registry-packages"},"_id":"snekfetch@4.0.0-beta.1","version":"4.0.0-beta.1"}