
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.
Accept piped data as an argument to your CLI app
This module allows you to accept piped data in your application along with directly provided arguments. It returns a simple array of all the arguments and flags, with any piped data pushed onto the end of the array.
First, install with npm:
$ npm install cli-pipe
Then include and call:
// File: test.js
var get_args = require('cli-pipe');
get_args(function (args) {
console.log(args);
});
Run it like so:
$ node test.js first second # Arguments provided directly
[ 'node', '/path/to/dir/test.js', 'first', 'second' ]
$ cat somefile.txt | node test.js first # Piped data and direct args
[ 'node', '/path/to/dir/test.js', 'first', 'content of somefile.txt' ]
This module does not alter process.argv, so it is compatible with most or all
other CLI helper modules (e.g. commander, meow).
FAQs
Accept piped data as an argument to your CLI app
We found that cli-pipe 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.