printstack

1.0.7 • Public • Published

Print Stack

Stack tracing module that shows the script's name and line number of the position called


I was needing a way to display all of the errors in my huge discord script as far as Script Name and line number so I could track it down better, with this package you can easily and quickly find where your errors are at.

List of features

  • Ability to call the Print Stack function with optional overloading for error logging with or without an additional comment passed.

Example Usage

Download & Installation

$ npm i printstack

Usage

var Stack = require('printstack');
Stack.PrintStack();
//File: <The File Name>
//Line Number: <Line Number>
//or
Stack.PrintStack("This is a comment that will show up.");
//File: <The File Name>
//Line Number: <Line Number>
//This is a comment that will show up.

Authors or Acknowledgments

  • Ran Crump

License

This project is licensed under the MIT License

/printstack/

    Package Sidebar

    Install

    npm i printstack

    Weekly Downloads

    0

    Version

    1.0.7

    License

    ISC

    Unpacked Size

    1.91 kB

    Total Files

    3

    Last publish

    Collaborators

    • ranner198