Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
marquee-ora
Advanced tools
A tool to create an ora compatible spinner objects that behave like a scrolling marquee
A tool to create an ora compatible spinner object that behaves like a scrolling marquee
npm install --save marquee-ora
This module is to be used in conjunction with ora the elegant terminal spinner.
const ora = require('ora');
const marquee = require('marquee');
const spinner = ora({
text: 'This is a scrolling marquee',
spinner: marquee({text: 'This marquee rocks!!'})
});
spinner.start();
setTimeout(() => {
spinner.stop();
}, 3000);
This gif looks really slow, but the default interval isn't this bad, this is just the gif appearing slow
const ora = require('ora');
const marquee = require('marquee');
const spinner = ora({
text: 'This is a scrolling marquee',
spinner: marquee({
text: 'Pause when fully in view',
fullTextFrames: 15,
interval: 50
})
});
spinner.start();
setTimeout(() => {
spinner.stop();
}, 3000);
Required text to be scrolled in the marquee
The character to use for the empty space that isn't your text. Defaults to a single space, which looks pretty good.
The number of frames to have the full text pause in the marquee. This option isn't valid if the viewWidth is smaller than the text length. (It makes no sense because the full text cant be displayed in this case)
The character width for the marquee. If larger than text length, you will get padding of the fill
.
If smaller than text
length, then you won't be able to see the full text at one time.
Number of milliseconds for each "frame" to be active. This is passed directly to ora's interval
option
const ora = require('ora');
const marquee = require('./index');
const spinner = ora({
text: 'This is a scrolling marquee',
spinner: marquee({
text: 'Using lots of options',
fullTextFrames: 8,
viewWidth: 29,
fill: '-',
interval: 20
})
});
spinner.start();
setTimeout(() => {
spinner.stop();
}, 3000);
FAQs
A tool to create an ora compatible spinner objects that behave like a scrolling marquee
The npm package marquee-ora receives a total of 1 weekly downloads. As such, marquee-ora popularity was classified as not popular.
We found that marquee-ora 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.