Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elmahio/jsstack.js

A simple and easy library for highlighting JavaScript stack traces.
https://github.com/elmahio/jsstack.js

elmah elmah-io highlighting stacktrace stacktrace-library stacktracejs stacktraces

Last synced: 2 months ago
JSON representation

A simple and easy library for highlighting JavaScript stack traces.

Awesome Lists containing this project

README

        

# jsStack.js
[![npm](https://img.shields.io/npm/v/jsstack.js.svg)](https://www.npmjs.com/package/jsstack.js)
![license](https://img.shields.io/hexpm/l/plug.svg?style=flat-square)

A simple and easy library for highlighting JavaScript stack traces

#### Demo
jsStack.js - demo

#### Initialization
```javascript
jsStack('.stacktrace');
```

#### Default values for classes
```javascript
jsStack('.stacktrace', {
method: 'st-methodName',
file: 'st-fileName',
line: 'st-lineNumber',
column: 'st-column'
});
```

#### Ready to go css
```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;}
```