Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
node-logger.js
Advanced tools
The simple, easy to use, and fast way to log things to a file and with timestamps to the console.
$ npm install node-logger
or
$ yarn add node-logger
There are three options with this package. One is to overwrite the normal console.log(). To do that all you have to do is this:
await require('node-logger')(true);
console.log('Test'); // [date time]: Test
To not overwrite the normal console.log() you can leave that option empty or false
const logger = await require('node-logger')();
logger('Test'); // [date time]: Test
Now one of the cooler features is the option to log the console to a file in real time. It is very easy to setup this option.
await require('node-logger')(true, '/path/to/logs');
Again this works with or without the override. The path to the logs is the path from your base project directory to where you want your logs to be. If the folders do not exist they will be created automatically.
Console:
Log File:
FAQs
simple easy to use logger
The npm package node-logger.js receives a total of 0 weekly downloads. As such, node-logger.js popularity was classified as not popular.
We found that node-logger.js 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.