Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Installs process.stdout
and process.stderr
and redirects console
like
node.
Repository: https://github.com/mantoni/brout.js
npm install brout
Assume my-script.js
contains this:
process.stdout.write('Hello stdout!\n');
console.log('Hello %s!', 'console');
Use with browserify and phantomic:
$ browserify -t brout my-script.js | phantomic
Hello stdout!
Hello console!
var brout = require('brout');
brout.on('out', function (str)) {
// ...
});
brout.on('err', function (str)) {
// ...
});
brout.on('exit', function (code)) {
// ...
});
Event listeners are tiggered by these calls:
process.stdout.write(string)
process.stderr.write(string)
process.exit(code)
The console functions log
, info
, warn
and error
get replaced and the
original implementation is exposed:
console.log.original
console.info.original
console.warn.original
console.error.original
The console override behaves like node's implementation and writes to
process.stdout
and process.sterr
.
If an out
or err
listener is installed, then the corresponding console
message is no longer forwarded to the original console implementation.
MIT
1.3.0
process
existence to support browserify --no-detect-globals
.FAQs
stdout and stderr for browsers
The npm package brout receives a total of 552 weekly downloads. As such, brout popularity was classified as not popular.
We found that brout 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.