GitHunt
EL

elmahio/jsStack.js

A simple and easy library for highlighting JavaScript stack traces.

jsStack.js

npm
license

A simple and easy library for highlighting JavaScript stack traces

Demo

jsStack.js - demo

Initialization

jsStack('.stacktrace');

Default values for classes

jsStack('.stacktrace', {
    method: 'st-methodName',
    file: 'st-fileName',
    line: 'st-lineNumber',
    column: 'st-column'
});

Ready to go css

pre {padding: 20px 10px;}
pre, code {background-color: #333;color: #ffffff;}
.st-methodName {color: #70c9ba;font-weight: bolder;}
.st-column {color: #f8b068;}
.st-lineNumber {color: #ff4f68;}
.st-fileName {color: #85dbff;}

Languages

JavaScript100.0%

Contributors

Apache License 2.0
Created August 23, 2018
Updated June 3, 2025
elmahio/jsStack.js | GitHunt