@nexssp/stack
v1.0.9
Published
Displays stack the nice way.
Downloads
17
Readme
@nexssp/stack
Display stack in nice way with colors and removes the very first line from stack.
Installation
npm i @nexssp/stack
Usage
const { stack } = require("stack");
// OR
const mystack = require("@nexssp/stack").stack;
require("module-alias/register");
const { stack } = require("@nexssp/stack");
stack("My Error test with nice stack");
stack("Display of the stack can be adjusted ('message',1,4)", 1, 3);
//Where 2 is which one number to colorize. Default is 1. 3 is cut line from the top, so it will cut 3 lines.