kodenamekrak / beatsaber-crashreporterapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beatsaber-crashreporterapi

A simple wrapper for the CrashReporter API

Installing

npm install beatsaber-crashreporterapi

Example

const { CrashReporterAPI } = require('beatsaber-crashreporterapi');

const cr = new CrashReporterAPI('MyApp', '1.0.0');

const crashes = cr.getRecentCrashes({
	limit: 10,
	search: 'libqosmetics-core.so',
	age: 10
}).then(crashes => {
	crashes.forEach(crash => console.log(crash.crashId));
});

Credit

beatsaver-api - I have never written a library before so this was very useful for reference

About

License:MIT License


Languages

Language:TypeScript 100.0%