
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
xtra-logger
Advanced tools
A lightweight logger, console text coloriser and text formatter with highest formatting options.
Version | Compatibility |
---|---|
Es5 Javascript | ✅ |
Es6 Javascript | ✅ |
Typescript | ✅ |
Feature | Availability |
---|---|
Logging | ✅ |
Text Formatting | ✅ |
Console Colorize | ✅ |
Combined Formatting | ✅ |
Size | 17 kb |
Node Package Manager (NPM)
npm i xtra-logger
Yet Another Resource Navigator (YARN)
yarn add xtra-logger
For Es5 Js
const { logger, format } = require("xtra-logger");
For Es6 Js / Typescript
import { logger, format } from "xtra-logger";
Logging features:
[ DD.MM.YY - HH:MM:SS ] - [ TYPE ] - MESSAGE
Example :
import { logger, format } from "xtra-logger";
// Changing the timezone of logger [ optional ] (By default it will use system time)
logger.timeZone("Asia/Kolkata");
// Logging options
logger.info("Starting the server...");
logger.warn("Using node v:18.6");
logger.success("Server started successfully.");
logger.debug("NPM update available.");
logger.error("An error occurd in the server.");
Output :
Text formatting features:
Example :
import { logger, format } from "xtra-logger";
// Only bold text
console.log(format.bold("This is a Bold text\n"));
// Combining colours + multiple formatting
console.log(
format.bold(
format.italic(format.cyan("This is a Bold + Italic + Cyan colour text \n"))
)
);
console.log(
format.bgBrightmagenta(
format.strikethrough(
format.lightwhite(
"This is a strikethrough + light white text with bright magenta background"
)
)
)
);
Output :
I don't have any contributors in this project yet. Feel free to contribute and making it better.
FAQs
A lightweight logger, console text coloriser and text formatter with highest formatting options.
We found that xtra-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.