voxelcloud-utils
v0.0.5
Published
[![NPM package][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Test workflow][workflow-image]][workflow-url] [![Coverage Status][coveralls-image]][coveralls-url]
Downloads
6
Readme
voxelcloud-utils
collection of multiple utility function like lodash
, also includes HTTP request library voxios
based on axios
.
docs website click here
Features
util
- [x] cloneDeep
- [x] isEmpty
- [x] isPlainObject
- [x] throttle
- [x] debounce
- [x] groupBy
- [x] uuid
data
- [x] Enum
- [x] storage
- [x] Session
browser
- [x] copyToClipboard
request
- [x] Voxios
Usage
- Install
yarn add voxelcloud-utils
- Usage
import { cloneDeep } from 'voxelcloud-utils';
console.log(cloneDeep({ name: 'voxelcloud' }));
Development
- Dev
yarn install
npm run dev
- Code Commit
npm run commit
Release
- Create Standard Version
# 注意以下命令需选择:
npm run release # 默认补丁版本 增加0.0.1
npm run release -- --first-release # 首次发布
npm run release -- --prerelease # 预发布 This will tag your version as: 1.0.1-0
npm run release -- --prerelease alpha # This will tag the version as: 1.0.1-alpha.0
npm run release -- --release-as major # 主版本变更
npm run release -- --release-as minor # 次级版本变更
npm run release -- --release-as patch # 补丁版本变更
npm run release -- --release-as 1.1.0 # 变更指定版本
- Build
npm run build
- Npm Publish
git push --follow-tags origin [branchName] # branchName 分支名
npm publish