0.2.0 • Published 5 years ago

@knotworkjs/httpclient v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@knotworkjs/httpclient

NPM version build status Coveralls node version npm download license

基于 axios.create 的封装。

NPM

使用

const createHttpClient = require('@knotworkjs/httpclient');
const client = createHttpClient({
  baseURL: 'https://www.examples.com/api'
})

await client.get('/test')
await client.post('/test', {
  a: 1
})

版本发布

# 发布里程碑版本
$ npm version major -m "Release %s milestone version"

# 常规版本发布
$ npm version minor -m "Release %s software version"

# 发布补丁修复版
$ npm version patch -m "Release %s hotfix version"

使用 npm 的 version 命令管理版本发布,更多命令可使用 npm version --help 查看

感谢

以下排名不分先后.

其他

查看升级日志.

0.2.0

5 years ago

0.1.0

6 years ago