npm promulgates marsupials
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    traceypublic

    Tracey

    Get a nice parsed stack trace from the calling location

    Install

    npm install tracey

    Usage

    Capturing the current call stack

    var tracey = require('tracey');
    
    var stack = tracey();
    console.log(stack);
    

    Or you can pass an exception to parse its stack frames

    try {
        // .. something bad
    } catch (ex) {
        var error_stack = tracey(ex);
    }
    

    Tracy returns an array of frame objects with the following properties:

    • path - the full file path of the executing code
    • line - the line number of the executing code
    • column - the column number of the executing code
    • func - the name of the function call

    Keywords

    none

    install

    npm i tracey

    Downloadsweekly downloads

    59

    version

    0.2.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar