
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
cli-dot-matrix-display
Advanced tools
A library to create a command line dot matrix display.
$ npm install cli-dot-matrix-display
var cliDotMatrixDisplay = require('cli-dot-matrix-display');
var width = 128;
var height = 32;
var display = new cliDotMatrixDisplay.builder(width, height);
/* print some custom dots */
var dots = {
0: {
0: true
},
1: {
1: true
},
2: {
2: true
},
3: {
3: true
}
};
console.log('――――――――――');
display.setDots(dots, true);
console.log(display.getPanel());
console.log('――――――――――');
/* print all dots */
console.log('――――――――――');
display.enableAllDots();
console.log(display.getPanel());
console.log('――――――――――');
/* print empty display */
console.log('――――――――――');
display.resetPanel();
console.log(display.getPanel());
console.log('――――――――――');
/* print sinus curve */
console.log('――――――――――');
var heightHalf = Math.floor((height - 1) / 2);
display.setDotsByCallback(function (x) {
return Math.sin(16 * x * Math.PI / 180) * heightHalf + heightHalf;
}, true, {'fill-below': true});
console.log(display.getPanel());
console.log('――――――――――');
/* print increasing line */
console.log('――――――――――');
display.setDotsByCallback(function (x) {
return x / 4;
}, true, {'fill-above': true});
console.log(display.getPanel());
console.log('――――――――――');
console.log('');
ISC © Björn Hempel
FAQs
A library to create a command line dot matrix display.
We found that cli-dot-matrix-display 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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.