package
simple & powerful http client in Node.js
npm install xttpGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
simple http client in node js
$ npm install xttpconst xttp = require('xttp');
// case 1:
xttp('https://api.github.com/users/song940/orgs', {
method: 'get',
headers: {
'User-Agent': 'xttp/1.0'
}
})
.then(res => res.json())
.then(res => {
console.log(res);
});
// case 2:
xttp('https://api.github.com/users/song940/orgs', {
method: 'get',
headers: {
'User-Agent': 'xttp/1.0'
}
}, async (err, res)
$ npm installThis work is licensed under the MIT license.
Estimated unpacked size across 4 packages.
563.5 kB
Includes dependencies.