got wrapper with automaticlly encoding

node v10.18.0
version: v0.1.4
endpointsharetweet
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) })();
Loading…

no comments

    sign in to comment