
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Node Debug Logger
$ npm install delog
var delog = require('delog');
to enable call before creating delogger
delog.enable('beer');
outputs to stdout
var beer = delog('beer');
calls console.log and outputs to stdout
beer('log', 'The fridge is working')
beer.log('The fridge is working');
calls console.warn and outputs to stderr
beer('warn', 'You might be out')
beer.warn('You might be out');
calls console.error and outputs to stderr
beer('error', 'You are out!')
beer.error('You are out');
var open = delog('tcp:open');
var close = delog('tcp:close');
delog.enable('tcp:open');
open('You have been logged');
open.warn('Your messages are logging');
close('this will not be logged');
close.error('Not enabled so not logged');
var requests = delog('server:requests');
var response = delog('server:response');
delog.enable('server:*');
requests('got a request');
requests.warn('request came slow');
response('sent a response');
response.error('you didn't send anything');
var delog = require('delog');
delog.enable('test:a');
var a = delog('test:a');
var b = delog('test:b');
console.log('test:a is Enabled');
a('Basic');
a('log','Log 1');
a.log('Log 2');
a.error('A: Error 1');
a('error', 'A: Error 2');
a.warn('A: Warn 1');
a('warn', 'A: Warn 2');
console.log('test:b is Disabled');
b('Basic');
b('log','Log 1');
b.log('Log 2');
b.error('b: Error 1');
b('error', 'b: Error 2');
b.warn('b: Warn 1');
b('warn', 'b: Warn 2');
(The MIT License)
Copyright (c) 2013 Christian Sullivan <cs@euforic.co>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Node Debug Logger
The npm package delog receives a total of 0 weekly downloads. As such, delog popularity was classified as not popular.
We found that delog 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.