kong-axios
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

kong-axios

基于promise的HTTP库.

Getting Started

  • 执行get请求
// 为给定 ID 的 user 创建请求
axios.get('/user?ID=12345')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

// 可选地,上面的请求可以这样做
axios.get('/user', {
    params: {
      ID: 12345
    }
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

Prerequisites

node > 8.0

Installing

yarn isntall

Running the tests

yarn test

Built With

iamlazyen

TODO

  • [ ] 掌握TypeScript
  • [ ] 编写md文件
  • [ ] travel ci流程
  • [ ] git 相关操作
  • [ ] Makefile操作
  • [ ] linux常用命令及sh脚本
  • [ ] webstrom快捷键及系统快捷键
  • [ ] 编写单元测试

License

MIT

Dependencies (0)

    Dev Dependencies (46)

    Package Sidebar

    Install

    npm i kong-axios

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    134 kB

    Total Files

    55

    Last publish

    Collaborators

    • deepa.kong