Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/elmahio/jsstack.js
- Owner: elmahio
- License: apache-2.0
- Created: 2018-08-23T06:47:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T13:04:03.000Z (5 months ago)
- Last Synced: 2024-11-12T11:39:49.182Z (2 months ago)
- Topics: elmah, elmah-io, highlighting, stacktrace, stacktrace-library, stacktracejs, stacktraces
- Language: JavaScript
- Homepage: https://elmah.io
- Size: 121 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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
#### 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;}
```