1.0.0 • Published 8 years ago

nwconsole v1.0.0

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
8 years ago

nwconsole

Redirect console.log calls to a basic log file for node webkit applications.

Motivation

'console' in nw application can easily get mixed between node & webkit environnement. In nw, nwconsole, will enforce output in a simple, unique, temporary file for both nodejs & webkit context. If used in a raw nodejs environnement, nwconsole falls back to the native 'console'.

Installation

npm install nwconsole

Dependencies

none, full code source is 10 lines, give it a look.

Usage example

console = require('nwconsole');
console.log("This behave '%d', "43", "Exactly as console should");
1.0.0

8 years ago

0.6.0

8 years ago

0.5.0

8 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago