floatdrop / sent

Like got, but sent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sent Build Status

Simplified HTTP/HTTPS upload requests

Deprecated: use got directly.

Wrapper around got to send POST data from arguments.

Use request if you need more.

Install

$ npm install --save sent

Usage

var sent = require('sent');

// Callback mode.
sent('http://devnull-as-a-service.com/dev/null', 'Hello', function (err, data, res) {
	console.log(res.statusCode);
});

// Stream mode.
sent('http://devnull-as-a-service.com/dev/null', 'Hello').pipe(fs.createWriteStream('index.html'));

sent(url, content, [options], [callback])

See got for options explanation.

License

MIT © Vsevolod Strukchinsky

About

Like got, but sent

License:MIT License


Languages

Language:JavaScript 100.0%