npm install micejavascript
var mice = require('mice')('cn'); // 目前只支持cn、en, 默认cn // 生成词语
mice.word(); // 单个词语
mice.words(10, '-'); // 10个词语, 并用分隔符‘-’连接
// 句子
mice.sentence(); // 单个句子
mice.sentences(5, '
'); // 多个句子,并用分隔符‘
’连接
mice.sentences(5, ['
', '
']); // 用首尾型tag连接 // 段落
mice.paragraph(); //当个段落
mice.paragraphs(5, '
'); // 多个段落,分隔符使用同上
// 英语接口与汉字一样。
``