
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
console-debug
Advanced tools
Replaces the console object with a more stylish and practical way of displaying messages.
Replaces your console object with a more stylish and practical way of displaying notices,warn,info,debug,log and errors.
It automagically shows you the line number and filename where the command was executed, along with a timestamp.
There is also the ability to catch uncaughtExceptions, disable the output colors, and log to file.
You can also setup filters if you want to hide certain debug message types.
https://github.com/michaeldegroot/console-debug/commits/master
npm install console-debug
var Debug = require('console-debug')
var console = new Debug({
uncaughtExceptionCatch: false, // Do we want to catch uncaughtExceptions?
consoleFilter: ['LOG', 'WARN'], // Filter these console output types
logToFile: true, // if true, will put console output in a log file folder called 'logs'
logFilter: ['LOG','DEBUG','INFO'], // Examples: Filter these types to not log to file
colors: true // do we want pretty pony colors in our console output?
})
console.log("I am a log!")
console.warn("I am a warn!")
console.error("I am a error!")
console.debug("I am a debug!")
console.info("I am a info!")
// can also display objects
obj = {
test1: [1,2,3,4],
test3: ["ohai","there"],
test4: true
}
console.log(obj)
You can contact me at specamps@gmail.com
FAQs
Replaces the console object with a more stylish and practical way of displaying messages.
The npm package console-debug receives a total of 2 weekly downloads. As such, console-debug popularity was classified as not popular.
We found that console-debug 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.