
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Make any application that reads and writes files read and write from stdin/stdout instead.
stdioify is a dirty little hack for making applications that read from and write to files use stdin/stdout instead.
npm install stdioify [-g]
To make traceur read from stdin and output to stdout, run the following command
cat test.js | stdioify --command traceur --out-arg="--out" --suffix=".js"
stdioify will then read input data from stdin, write it out to a temporary file, set up a temporary file for output, and run the following command:
traceur --out <temp-out-file> <temp-in-file>
Finally, it will read the output file and write its data to stdout.
stdioify can also be used as a library in node.js, of course.
var stdioify = require('./stdioify');
var js = 'class Greeter { sayHi() { console.log("Hi!"); } }\n' +
'var greeter = new Greeter();\n' +
'greeter.sayHi();';
stdioify({
command: 'traceur',
'out-arg': '--out',
suffix: '.js'
}).on('data', function(data) {
console.log(data.toString());
}).write(js);
--command
, -c
: Path to executable to run [required]--in-arg
, -i
: Argument for in-file passed to command (if left out, filename will simply be appended to argument list)--out-arg
, -o
: Argument for out-file passed to command (if left out, application is assumed to write to stdout already)--suffix
, -s
: Suffix to use for temp filesAny arguments after --
will be passed to the application as-is.
WTFPL
FAQs
Make any application that reads and writes files read and write from stdin/stdout instead.
The npm package stdioify receives a total of 4 weekly downloads. As such, stdioify popularity was classified as not popular.
We found that stdioify 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.