Enforces rules in Gabe's discord server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Geometer1729 7e6807c787
make count more interesting
3 years ago
..
.github Add thicc node modules 3 years ago
scripts Add thicc node modules 3 years ago
src Add thicc node modules 3 years ago
test Add thicc node modules 3 years ago
.eslintrc.json Add thicc node modules 3 years ago
.travis.yml Add thicc node modules 3 years ago
CODE_OF_CONDUCT.md Add thicc node modules 3 years ago
CONTRIBUTING.md Add thicc node modules 3 years ago
LICENSE Add thicc node modules 3 years ago
README.md Add thicc node modules 3 years ago
browser.js Add thicc node modules 3 years ago
docs.js Add thicc node modules 3 years ago
esm.mjs Add thicc node modules 3 years ago
index.js Add thicc node modules 3 years ago
package.json Add thicc node modules 3 years ago
sync.js Add thicc node modules 3 years ago
webpack.config.js Add thicc node modules 3 years ago

README.md

npm David Coverage Status Build Status

NPM

snekfetch Version Badge

Snekfetch is a fast, efficient, and user-friendly library for making HTTP requests.

The API was inspired by superagent, however it is much smaller and faster. In fact, in browser, it is a mere 4.4kb.

Documentation is available at https://snekfetch.js.org/

Some examples

const request = require('snekfetch');

request.post('https://httpbin.org/post')
  .send({ usingGoodRequestLibrary: true })
  .then(r => console.log(r.body)); // r.body is object from json response

request.get('https://s.gc.gy/o-SNAKES.jpg')
  .then(r => fs.writeFile('download.jpg', r.body)); // r.body is buffer

request.get('https://s.gc.gy/o-SNAKES.jpg')
  .pipe(fs.createWriteStream('download.jpg')); // pipes

Available for browser as UMD from unpkg

<script src=https://unpkg.com/snekfetch></script>