Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
lorem-ipsum-tc
Advanced tools
Creating Traditional Chinese lorem ipsum.
繁體中文測試文本生成工具
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.
npm i lorem-ipsum-tc
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'.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
FAQs
Tool for creating Traditional Chinese lorem ipsum
The npm package lorem-ipsum-tc receives a total of 30 weekly downloads. As such, lorem-ipsum-tc popularity was classified as not popular.
We found that lorem-ipsum-tc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.