0.1.0 • Published 4 years ago
ts-axios-jarvis v0.1.0
ts-axios
使用 TypeScript 实现 axios
安装
$ npm install ts-axios-jarvis
使用方法
import axios from 'ts-axios-jarvis';
axios.get('https://yesno.wtf/api')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
API与axios相似,更多API请参考 https://github.com/axios/axios
0.1.0
4 years ago