Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
dummy-text-generator
Advanced tools
Using npm:
npm install --save dummy-text-generator
Using yarn:
yarn add dummy-text-generator
In Nodejs
const loremGenerator = require('dummy-text-generator');
// const { generateWord, generateSentence, generateParagraph } = require('dummy-text-generator');
// const generateWord = require('dummy-text-generator').generateWord;
loremGenerator.generateWord();
// Output: Lorem
loremGenerator.generateSentence(10);
// Output: Excepteur laboris ea labore quis sunt laborum reprehenderit ea duis.
loremGenerator.generateParagraph(5, 10);
// Output: Excepteur minim amet lorem velit in mollit laborum magna cillum. Qui aliquip duis excepteur id est dolore eiusmod ea adipisicing. Laboris aute sint culpa aliquip laboris enim aliqua exercitation ut. Ea enim deserunt reprehenderit culpa pariatur nostrud laboris anim eiusmod. Ullamco nisi duis cillum elit id officia veniam excepteur velit.
In Browser
CDN:
<script src="https://cdn.jsdelivr.net/npm/dummy-text-generator@<tags_version>/dist/lorem-generator.min.js"></script>
Using loremGenerator
object
In ES modules
import loremGenerator from 'dummy-text-generator';
import { generateWord, generateSentence, generateParagraph } from 'dummy-text-generator';
generateWord() - Return random 1 word
generateSentence(maxWord) - Return random 1 sentence
generateParagraph(maxSentence, maxWord) - Return random 1 paragraph
FAQs
Simple random lorem ipsum generator
We found that dummy-text-generator 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.