@nexssp/stack

Displays stack the nice way.

Usage no npm install needed!

<script type="module">
  import nexsspStack from 'https://cdn.skypack.dev/@nexssp/stack';
</script>

README

@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.