Home

Awesome

then-got npmjs.com The MIT License

Promisified simple-get.

code climate standard code style travis build status coverage status dependency status

Install

npm i then-got --save

Usage

For more use-cases see the tests

const thenGot = require('then-got')
const isStream = require('is-node-stream')

thenGot('http://www.tunnckocore.tk').then(stream => {
  console.log(isStream(stream)) // => true
}, console.error)

// or with simple-get's .concat method
// to get the content of the page
thenGot.concat('http://www.tunnckocore.tk').then(res => {
  const html = res[0]
  const stream = res[1]
  console.log(html)
}, console.error)

Related

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github