moc-tool

0.0.3 • Public • Published

moc-tool

为构造moc数据提供必要的工具函数

常用的moc工具方法

1.布尔值随机生成。exports.boolean()

2.字符串生成,包含简体、繁体、英文字符串。exports.char()

3.数字随机生成,范围可以配置,或者指定长度小数位数。exports.number()/exports.formatInt2Float()

4.随机时间戳。exports.timestamp();

5.成功和失败的模板格式。exports.success()/exports.fail()

license

moc-tool is freely distributable under the terms of the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i moc-tool

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • wenber