@nexssp/stack

1.0.9 • Public • Published

@nexssp/stack

Display stack in nice way with colors and removes the very first line from stack.

Installation

npm i @nexssp/stack

image

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.

Package Sidebar

Install

npm i @nexssp/stack

Homepage

nexss.com

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

3.07 kB

Total Files

4

Last publish

Collaborators

  • nexss