1.0.1 • Published 9 years ago

write.js v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

write.js

Normalized stdout.write() that works on both Node.js and PhantomJS.

Install

$ npm install --save write.js

API

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