0.0.3 • Published 9 years ago

moc-tool v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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.