Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lorem-ipsum-tc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lorem-ipsum-tc

Tool for creating Traditional Chinese lorem ipsum

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

lorem-ipsum-tc

Creating Traditional Chinese lorem ipsum.

繁體中文測試文本生成工具

example

const loremIpsumTC = require('lorem-ipsum-tc')

let char = loremIpsumTC.createChar()
console.log(char)
// return a random character string.

let line = loremIpsumTC.createLine()
console.log(line)
// return a random line string.

let paragraph = loremIpsumTC.createParagraph()
console.log(paragraph)
// return a random paragraph string.

let article = loremIpsumTC.createArticle()
console.log(article)
// return a random article string.

Installation

npm i lorem-ipsum-tc

option

loremIpsumTC.createChar(charList)
loremIpsumTC.createLine(withLoren, numOfChar, charList)
loremIpsumTC.createParagraph(withLoren, numOfLine, charList)
loremIpsumTC.createArticle(
  withLoren,
  numOfParagraph,
  indent,
  skippingLine,
  charList
)
  • charList: string

    There is a default charList, however you can use your own charList by String. EX: loremIpsumTC.createChar("甲乙丙丁")

  • withLoren: boolean

    If withLoren is true, line or paragraph would start with "羅倫" which means lorem in Chinese. The default is true.

  • numOfChar: number

    The number of characters would be created.(ps. "羅倫" is NOT counted.) The default is random from 2 to 21.

  • numOfLine: number

    The number of lines would be created. The default is random from 3 to 7.

  • numOfParagraph: number

    The number of paragraphs would be created. The default is random from 3 to 7.

  • indent: string

    The indent of each paragraph. The default is 4 spaces.

  • skippingLine: string

    The skipping line between paragraphs. The default is '\n'.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Keywords

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc