1.0.5 • Published 8 years ago

line-trace v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

line-trace

Build Status

Trace print with process PID, source filename, function and line numbers.

Install

$ npm install line-trace

Usage

var trace = require('line-trace');

function f(a) {
  trace(a);
}

f(34);
trace([1, 2, "foo"]);
trace("%s %j", "label", {a:1, b:2});

will generate:

[125 test.js:4 f] 34
[125 test.js:8 ?] [1,2,"foo"]
[125 test.js:9 ?] label {"a":1,"b":2}

License

MIT license.

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago