1.0.1 • Published 6 years ago
xdaili-fetch v1.0.1
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)