Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
browser-supports-log-styles
Advanced tools
returns true if browser supports console log styling
Modern browsers support CSS-based styling of console log outputs. See Documentation on Mozilla Developer Network
Download latest version here: https://wzrd.in/standalone/browser-supports-log-styles
Or install via npm: npm install -S browser-supports-log-styles
if (browserSupportsLogStyles()) {
console.log('%cLOG%c styling supported', 'color: white; padding: .2em .5em; border-radius: 1em; background-color: blue', 'color: inherit')
} else {
console.log('styling not supported')
}
Takend from TJ Holowaychuk @visionmedia's fantastic debug npm package Original code: https://github.com/visionmedia/debug/blob/165e937e6dd529588fc3d9761d3f745969d3d054/browser.js#L28-L44
MIT
FAQs
returns true if browser supports console log styling
The npm package browser-supports-log-styles receives a total of 481 weekly downloads. As such, browser-supports-log-styles popularity was classified as not popular.
We found that browser-supports-log-styles 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
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.