0.0.2 • Published 1 year ago

loggz v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Features

  • Built with a focus on performance and usability
  • Use in native HTML form
  • Simplify number and field formatting

Install

npm install loggz

Quickstart

To use the library, import the loggz class and create an instance with your API key:

import { Loggz } from 'loggz';

const loggz = new Loggz("YOUR_TOKEN_HERE");

Then, you can use the notify event method to send a notification:

loggz.publish({
  name:  "Approved purchase",
  description:  "A purchase has been approved.",
  channel:  "sales",
  status:  "success",
  notify:  true,
  properties: {
    "my-property":  "my-property-value",
  },
  message:  
  "[Link](https://loggz.co)",
});

Contributors

Thank you for being amazing people!