xierimingship

使用TypeScript重构axios,100%还原axios的所有方法。

Usage no npm install needed!

<script type="module">
  import xierimingship from 'https://cdn.skypack.dev/xierimingship';
</script>

README

ts-axios

使用TypeScript重构axios,100%还原axios的所有方法。

运行

git clone https://github.com/RimingXie/ts-axios.git
cd ts-axios

# Run npm install and write your library name when asked. That's all!
npm install

Start coding! package.json and entry files are already set up for you, so don't worry about linking to your main file, typings, etc. Just keep those files with the same name.

接口测试

 npm run dev

浏览器打开 localhost:8080

代码检查

  npm run lint

打包构建

  npm run build

单元测试

  npm run test 

更多脚本命令请查看根目录package.json文件