lipsum-zh
v1.0.2
Published
A js library for generating Chinese Lorem Ipsum
Downloads
23
Maintainers
Readme
中文假字生成器 (Chinese Lorem Ipusm)
随机生成中文假字,借鉴于icelam/chinese-lorem-ipsum
基本功能
- 生成假字
选自
单字选自3500常用汉字表7000通用汉字。
Install
npm install lipsum-zh
Usage
支持ESM,CJS,UMD
//cjs
const lipsum = require('lipsum-zh')
lipsum.generateText(length)
lipsum.generateParagraph(length)
lipsum.generateArticle(length)
//esm
import { generateText, generateParagraph, generateArticle } from 'lipsum-zh'
//or
import * as lipsumzh from 'lipsum-zh'
//browser
window.lipsumzh.generateText(length)
window.lipsumzh.generateParagraph(length)
window.lipsumzh.generateArticle(length)