Skip to content

nailgun/node-callstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-callstack

The simplest possible callstack fetcher.

Build Status

npm install callstack

Usage

var callstack = require('callstack');

function hello () {
  console.log(callstack());
}

hello();

Produces output:

[ '    at hello (/Users/nailgun/workspace/callstack/example.js:4:15)',
  '    at Object.<anonymous> (/Users/nailgun/workspace/callstack/example.js:7:1)',
  '    at Module._compile (module.js:449:26)',
  '    at Object.Module._extensions..js (module.js:467:10)',
  '    at Module.load (module.js:356:32)',
  '    at Function.Module._load (module.js:312:12)',
  '    at Module.runMain (module.js:492:10)',
  '    at process.startup.processNextTick.process._tickCallback (node.js:245:9)' ]

About

The simplest possible callstack fetcher for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published