Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
debug-symbols
Advanced tools
Combines the popular debug module and log-symbols to create colorized debug logs with matching symbols
I built this small module because I wanted to use the popular debug module but extend it to:
This module merely extends Debug's usage and leaves all else intact.
const logger = require("debug-symbols")("namespace");
// Extend logger, Internally does debug.extend()
logger.extend("extend-to");
// This runs debug() as you might expect
logger.log("Default usage");
// Adding various log levels...
logger.debug("debug");
logger.info("info");
logger.warn("warn");
logger.error("error");
logger.fatal("fatal");
logger.fail("failed");
logger.success("success");
This will log something like this:
When working with a large project, you might want to have a default main namespace.
For example.
For Example:
Assume my project is called
aws-server
I would want all scripts usingdebug-symbols
to have their namespace asaws-server:script-name
The default namespace in this case is aws-server
. Instead of repeating it in every script, I can set it globally using the environment variable DEBUG_NS
and each module will adopt it.
In this case:
express
becomes aws-server:express
.aws-server:admin-route
remains aws-server:admin-route
.So to show my logs, all I need is add process.env.DEBUG="aws-server*
and all my scripts will log as expected.
FAQs
Combines the popular debug module and log-symbols to create colorized debug logs with matching symbols
The npm package debug-symbols receives a total of 9 weekly downloads. As such, debug-symbols popularity was classified as not popular.
We found that debug-symbols 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.