
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.
@nanw/nwlog
Advanced tools
A new-wheel logger for NodeJs. Simple do its task
const log = require('@nanw/nwlog')(__filename)
//easy api
log('log')
//explicit level
log.debug('log.debug')
log.info('log.info')
log.warn('log.warn')
log.error('log.error')
//formatting
let d = {a: 1, b:'Transylvania'}
log('Formatting: %d %s %j', 12345, 'welcome to', d)
log('test error with stack:', new Error('demo'))
const log2 = require('@nanw/nwlog')('/anotherModule/index.js')
log2('Message from another module')

const nwlog = require('@nanw/nwlog')
nwlog.config({
//decorateConsole: true, //whether decorate console.log/console.error. Default: true
//writeToConsole: true, //whether write to console for log operations. Default: true
//fileName: './log/console.log', //log file. If null, no log file will be created. Default: ./log/console.log
//maxLength: 4 * 1024 * 1024, //max file length
//maxFiles: 3, //max log files to keep
//custom: () => 'custom-label-' + process.pid, //A function to append custom label. E.g. add pid
//maskPassword: true //If enabled, tries to identify password string fields in log objects and mask them. Default: false
})
const log = nwlog(__filename)
log('log')
FAQs
New-wheel logger for NodeJs, just do it
We found that @nanw/nwlog 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.