
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.
Your new best friend when developing, and probably ONLY for development
p()p('Awesome!!') // Logs awesome
fetch('https://cats')
.then(x => x.json())
.then(p) // Logs the json result
.then(store)
a.neat().p.chain.p.here // Logs result of `neat` and `chain`
const wat = p`wat`
wat('is going on') // Logs `wat is going on`
This module adds a global p and global plog* variable which is a convenience method for logging.
It simply defers to console.log, but returns the first argument instead of undefined.
If it is called as a tagged template literal it will return a new p function that always prefixes logs with the value in the template literal.
It also adds p and plog to Object.prototype to enable even quicker logging. This way you can jump into a chain at any place to log the value and continue with your program as if nothing happened.
* (for times when p is shadowed)
node -r plog index.js # -r option is short for --require
<script src="https//unpkg.com/plog">
require('plog') // Adds the global p
You can use plog in place of node which is just a shortcut for node -r plog ...
plog index.js
FAQs
p - A small global logging utility for faster debugging
We found that plog 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.