0.2.0 • Published 5 years ago
@knotworkjs/httpclient v0.2.0
@knotworkjs/httpclient
基于 axios.create 的封装。
使用
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
查看
感谢
以下排名不分先后.