Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sodhanalibrary/crash-report-js
Tracks User's actions, logs and API calls in frontend applications and create crash report
https://github.com/sodhanalibrary/crash-report-js
Last synced: 21 days ago
JSON representation
Tracks User's actions, logs and API calls in frontend applications and create crash report
- Host: GitHub
- URL: https://github.com/sodhanalibrary/crash-report-js
- Owner: SodhanaLibrary
- License: mit
- Created: 2024-01-01T14:06:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-08T07:13:44.000Z (about 1 year ago)
- Last Synced: 2024-12-15T09:44:39.103Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crash-report-js
Tracks User's actions, logs and API calls in frontend applications and then create crash report
# Usage and example
Here i have documented the purpose and React example application
http://blog.sodhanalibrary.com/2024/01/track-user-actions-and-errors-using.html
# Install
```
npm install crash-report-js
```
# Import
```
import { initTracks, addTrack, getAllTracks, clearTracks } from crash-report-js
```
# Initiate tracks
```
initTracks();
```
# Clear tracks
```
clearTracks();
```
# Add track
```
addTrack({
type: 'log',
target: 'error',
value: 'error message here'
});
```
# Get all tracks
```
getAllTracks()
```
# Chrome extension (crash-report-js)
https://chromewebstore.google.com/detail/crash-report-js-extension/pacgfjjelhfpalaoniejckhjpkibonib