
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
triple-beam
Advanced tools
Definitions of levels for logging purposes & shareable Symbol constants.
const { LEVEL } = require('triple-beam');
const colors = require('colors/safe');
const info = {
[LEVEL]: 'error',
level: 'error',
message: 'hey a logging message!'
};
// Colorize your log level!
info.level = colors.green(info.level);
// And still have an unmutated copy of your level!
console.log(info.level === 'error'); // false
console.log(info[LEVEL] === 'error'); // true
Tests are written with mocha, assume, and nyc. They can be run with npm:
npm test
Loglevel is a logging library for JavaScript that provides a minimalistic and lightweight logging solution. It offers similar log level functionality but does not have the same level of configurability or integration with Winston as triple-beam.
Bunyan is a simple and fast JSON logging library for Node.js services. It provides log levels and custom serializers. While it has similar logging capabilities, it is a standalone logging library and does not serve as a set of constants for another library like triple-beam does for Winston.
Pino is a very low overhead Node.js logger, which also outputs logs in JSON format. It is designed for speed and provides different log levels. Pino is a full-fledged logging solution and not just a set of constants, making it more comparable to Winston itself rather than triple-beam.
FAQs
Definitions of levels for logging purposes & shareable Symbol constants.
The npm package triple-beam receives a total of 16,276,815 weekly downloads. As such, triple-beam popularity was classified as popular.
We found that triple-beam demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.