
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
Small plain text formatting library.
Say you want to create a simple text tile table but you want to format some cell of it to specific length. Here's an simple example
var fmt = require("../fmttxt"),
data = {
"jane.doe@example.com": {date: "03/19/1902", hour: "9.6"},
"john.doe@example": {date: "04/01/1902", hour: "3.5"}
};
// Create a simple heading line
console.log("| " +
[fmt.right("Contact", 36), fmt.left("Hour", 24), fmt.center("Date", 24)].join(" | ") +
" |");
// Create a separator row
console.log("+-" +
[fmt.left("-", 36, "-"), fmt.left("-", 24, "-"), fmt.left("-", 24, "-")].join("-+-") +
"-+");
// Now our simple table.
Object.keys(data).forEach(function (contact) {
// Create a data row
console.log("| " +
[fmt.right(contact, 36), fmt.left(data[contact].hour, 24), fmt.center(data[contact].date, 24)].join(" | ") +
" |");
// Create a separator row
console.log("+-" +
[fmt.left("-", 36, "-"), fmt.left("-", 24, "-"), fmt.left("-", 24, "-")].join("-+-") +
"-+");
});
FAQs
Small library for formatting plain text.
We found that fmttxt 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.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.