https://github.com/floatdrop/sent
Like got, but sent
https://github.com/floatdrop/sent
Last synced: about 1 year ago
JSON representation
Like got, but sent
- Host: GitHub
- URL: https://github.com/floatdrop/sent
- Owner: floatdrop
- License: mit
- Created: 2014-08-12T05:44:41.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-08T14:05:05.000Z (over 11 years ago)
- Last Synced: 2025-03-14T01:31:43.535Z (about 1 year ago)
- Language: JavaScript
- Size: 375 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# sent [](https://travis-ci.org/floatdrop/sent)
> Simplified HTTP/HTTPS upload requests
__Deprecated:__ use [got](https://github.com/sindresorhus/got) directly.
Wrapper around [got](https://github.com/sindresorhus/got) to send POST data from arguments.
Use [request](https://github.com/mikeal/request) if you need more.
## Install
```sh
$ npm install --save sent
```
## Usage
```js
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](https://github.com/sindresorhus/got) for options explanation.
## License
MIT © [Vsevolod Strukchinsky](floatdrop@gmail.com)