npm.io
1.2.0 • Published 2 years ago

nexys

Licence
Apache 2.0
Version
1.2.0
Deps
0
Size
220 kB
Vulns
0
Weekly
0

Nexys

  • 0 dependency
  • Consistent
  • Customizable & Flexible
  • Clientside & Serverside

Nexys is a logging service that will enable to review your errors, metrics and much more in production applications.
Nexys will gather all device data automatically (screen size, user agent, device memory, language, connection type and geolocation if permitted)
Also, Nexys will gather all errors on your production application, reports them to dashboard automatically.
You can examine each error and log's stack trace, which file/page the error occurred and many more details.

Nexys supports TypeScript and JavaScript.

Let's get you started!

Install Nexys client library with npm

npm install nexys

Import Nexys to your project

import Nexys from "nexys";

or put this on your HTML file's <head> tag:

<script src="https://unpkg.com/nexys@latest/dist/bundle.min.js"></script>
Then initialize Nexys
const nexys = new Nexys("API_KEY", { appName: "APP_NAME" });
nexys.log("and start logging!");
Throw an error to see automatic error handling
throw new Error("I should be able to see this error on dashboard");
Want to debug? Use debug parameter on initialization
const nexys = new Nexys("API_KEY", { appName: "APP_NAME", debug: true });

Documentation

View Nexys documentation here

Keywords