
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A very simple logging module. Because all the others are too much. This module relies on the node util module to provide timestamping and formatting of log messages. Messages are written to stdout via util.log.
The simplest useful log module imaginable.
Writes messages to stdout (as in [12 Factor App] (http://www.12factor.net/logs)) using the node.js util.log and util.format methods.
npm install simplog
Supports error, info, warn, debug and a handy event method. It's written in coffee script and you should be too (that was deliberate).
log.error "this is an error"
log.info "this is informational"
log.warn "this is a warning"
log.debug "this is a debug message and will only show up if process.env.DEBUG is truthy"
log.event "this will log with the type [EVENT] and will only show up if process.env.DEBUG is truthy"
It's even possible to use string formatting with it, like:
log.info "that %s looked like %j", object_name, object
Under the covers it's just using node's util.format and supports what you would expect.
As of 0.0.5 the output includes a pid as follows
22 May 22:07:44 - [15794] [ERROR] look ma, an error
If you decide you like the old way, sans pid:
22 May 22:07:44 - [ERROR] look ma, an error
you can make process.env.NOLOGPID
truthy and it will go away.
FAQs
A very simple logging module. Because all the others are too much. This module relies on the node util module to provide timestamping and formatting of log messages. Messages are written to stdout via util.log.
The npm package simplog receives a total of 60 weekly downloads. As such, simplog popularity was classified as not popular.
We found that simplog 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.