2.1.2 • Published 4 years ago

despair v2.1.2

Weekly downloads
42
License
MIT
Repository
github
Last release
4 years ago

despair

Lightweight library for making HTTP requests.

let dp = require("despair")

dp('https://google.com/').text().then(console.log)

dp.get('https://httpbin.org/get').json().then(console.log)

dp.post('https://httpbin.org/post', { data: { rawr: true }, type: 'json' }).json().then(console.log)

let res = await dp.get('https://httpbin.org/get')
console.log(res.headers, res.body)
2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago