
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Patches Node.js console log methods to add a UTC timestamp to each message
Patches Node.js console log methods to add a UTC timestamp to each message
The main objective of this project is to be extremely simple. That and to display timestamps next to each message logged using node's console logging methods. It will never depend on any other module to do its thing, and it doesn't have any options, and both are on purpose.
Just require it somewhere in your project before needing the timestamps:
require('console-me')
console.log('something')
// Output: [2016-04-14T14:38:45.489Z] LOG something
console.error('oops')
// Output: [2016-04-14T14:38:45.489Z] ERROR oops
The message types will be colored according to the type of logging method used:
console.error
console.warn
The output is buffered in production environments to improve logging performance. The buffer size is set at 8KB after which it's flushed. On process exit all buffered messages will also be flushed to the output.
FAQs
Patches Node.js console log methods to add a UTC timestamp to each message
The npm package console-me receives a total of 6 weekly downloads. As such, console-me popularity was classified as not popular.
We found that console-me 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.