@retailwe/common-utils

Common code such as libs, utils, helper, style, wxs

Usage no npm install needed!

<script type="module">
  import retailweCommonUtils from 'https://cdn.skypack.dev/@retailwe/common-utils';
</script>

README

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

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