Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "qlt", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Quick logging tool", | ||
@@ -5,0 +5,0 @@ "main": "qlt.js", |
qlt | ||
=== | ||
Quick and lightweight logging tool for node.js. Free yourself from console.log! | ||
Quick and lightweight logging tool for node.js. Free yourelf from writing console.log all the time! | ||
All datatypes are provided with two new properties: | ||
```javascript | ||
var how_is_it = 'awesome'; | ||
('Wow, this is ' + how_is_it).logn; | ||
``` | ||
Wow, this is awesome! | ||
It's a cleaner and faster way to display output from your app. | ||
Great! How can i use it? | ||
--- | ||
All datatypes (not only strings!) are provided with two new properties: | ||
* ```log``` (prints value to stdout) | ||
* ```logn``` (prints value and newline to stdout) | ||
**Changing ```.log``` property of object prototype collides with console.log, so objects use ```.print``` instead of ```.log```** | ||
**Changing ```.log``` property of object prototype collides with console.log, so objects use ```.print``` instead of ```.log```. ```.logn``` is the same for all.** | ||
Install | ||
=== | ||
--- | ||
@@ -20,4 +32,4 @@ ``` | ||
Usage | ||
=== | ||
Example | ||
--- | ||
@@ -46,2 +58,3 @@ There's no need to assign this module to a variable. Just require it and you're good to go! | ||
f.logn; | ||
('How convinient! This is a: ' + a + ', and this is c: ' + c).log; | ||
``` | ||
@@ -55,4 +68,4 @@ | ||
{ a: 5, b: 6 } | ||
{ a: 5, b: 6 }Sun Mar 30 2014 20:10:26 GMT+0200 (CEST) | ||
{ a: 5, b: 6 }Mon Mar 31 2014 21:11:31 GMT+0200 (CEST) | ||
How convinient! This is a: 5, and this is c: 1,2 | ||
``` |
5015
69