Oliyy / snekfetch

fast, efficient, and user-friendly http requests

Home Page:https://npmjs.com/snekfetch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm npm David

NPM

snekfetch

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 8kb.

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

Some examples

const snekfetch = require('snekfetch');

snekfetch.get('https://s.gus.host/o-SNAKES-80.jpg')
  .then(r => fs.writeFile('download.jpg', r.body));

snekfetch.get('https://s.gus.host/o-SNAKES-80.jpg')
  .pipe(fs.createWriteStream('download.jpg'));
const snekfetch = require('snekfetch');

snekfetch.post('https://httpbin.org/post')
  .send({ meme: 'dream' })
  .then(r => console.log(r.body));

About

fast, efficient, and user-friendly http requests

https://npmjs.com/snekfetch


Languages

Language:JavaScript 98.0%Language:Shell 2.0%