got wrapper with automaticlly encoding
const got = require('got')
const gotIconv = require('got-iconv');
(async () => {
const url = 'https://www.163.com/';
const [withoutIconv, withIconv] = await Promise.all([got(url), gotIconv(url)]);
console.log(withoutIconv.body);
console.log(withIconv.body)
})();
no comments