0.0.4 • Published 4 years ago
@retailwe/common-utils v0.0.4
common
Common code such as libs, utils, helper, style, wxs
使用
安装
yarn add '@retailwe/common-utils' --save-exact
引入
import {
time,
rpx,
object,
is,
image,
path,
money,
wx
} from '@retailwe/common-utils';
is.isString('abc'); // true
money.f2y(10000); // 100.00
API
开发
- 运行:
yarn watch
- 构建:
yarn build
- 单元测试:
yarn test
- 测试报告:
yarn cov
- 文档:
yarn doc
测试覆盖率
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|
All files | 71.43 | 58.33 | 100 | 71.43 | |
image.ts | 71.43 | 58.33 | 100 | 71.43 | 20,23 |