xdaili-fetch Install yarn add xdaili-fetch Example const Xfetch = require('xdaili-fetch'); const fetch = Xfetch(require('node-fetch'), { orderno: '??', secret: '??' }); fetch('https://www.baidu.com') .then(d=>d.text()) .then(console.log) .catch(console.error)