
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
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.
The npm package fmttxt receives a total of 5 weekly downloads. As such, fmttxt popularity was classified as not popular.
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.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.