JSPM

lipsum-zh

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q44791F
  • License MIT

A js library for generating Chinese Lorem Ipsum

Package Exports

  • lipsum-zh
  • lipsum-zh/index.cjs.js
  • lipsum-zh/index.esm.js
  • lipsum-zh/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lipsum-zh) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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)