JSPM

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

A library that generates Chinese lorem ipsum words

Package Exports

  • cnlorem
  • cnlorem/dist/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 (cnlorem) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cnlorem

cnlorem 是一个随机生成中英文句子(包含汉字、英文单词、标点)的 Javascript/Typescript 库

Installation

npm i --save-dev cnlorem

Usage

import cnlorem from 'cnlorem'

console.log(cnlorem(50))
// Output: 
// 着打相听里平很影命美终。眼把正么斯回条过身位活水意一位告回队大片间,儿看住里口处家成,两同风流民马稜她和和。

console.log(cnlorem({n: 50, en: 3}))
// Output: 
// 出心此然长无 dolor 该接将,认不那中行约经身死她者身方决头无论此此只着之 culpa,其望然亲同后。此经用独到 eu 内,文识次信量神都。

TODO

  • 支持生成中英混排文本

References

常用字来源:http://www.tidewaterchineseschool.org/wp-content/uploads/2015/02/国家出版局抽样统计最常用的-1000-个汉字.pdf