New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

lorem-ipsum-tc

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


Version published
Weekly downloads
11
decreased by-45%
Maintainers
1
Weekly downloads
 
Created

lorem-ipsum-tc

Creating Traditional Chinese lorem ipsum.

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

example

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

loremIpsumTC.createChar()
// Create a random character.

loremIpsumTC.createLine()
// Create a random line.

loremIpsumTC.createParagraph()
// Create a random paragraph.

loremIpsumTC.createArticle()
// Create a random article.

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

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