write.js
v1.0.1
Published
Normalized `stdout.write()` that works on both Node.js and PhantomJS.
Maintainers
Readme
write.js
Normalized
stdout.write()that works on both Node.js and PhantomJS.
Install
$ npm install --save write.jsAPI
write(message)
message
Required
Type: string
Output message.
Motivation
I wanted to persist a log message on both Node.js and PhantomJS REPL but I have discovered that this is not so trivial. There's a bunch of weird tricks to simply append a new log entry keeping the output clean at the same time.
This module abstracts all these small gotchas so you can focus on what really matters.
License
MIT © Rafael Rinaldi
