@retailwe/common-utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @retailwe/common-utils

Weekly Downloads

6

Version

0.0.4

License

MIT

Unpacked Size

227 kB

Total Files

77

Last publish

Collaborators

  • jeannehuang
  • gaterking
  • rachelrgao