lawg.js
Introduction
Lawg.js is a JavaScript library specifically built for interacting with lawg’s API asynchronously.
Installation
Usage
Import Library
import Lawg from '@lawgdev/js';
Initialization
const lawg = new Lawg({
token: process.env.LAWG_TOKEN, // ex: lawg_xxxxxxxxxxxxxxxxx
project: "my-cool-project",
ua: req.headers["user-agent"], // Optional
});
Contributing
If you’re planning to contribute to lawg.js, we use Yarn as our package manager. Get started within a few seconds by following these steps:
git clone https://github.com/lawgdev/lawg.js.git
cd lawg.js
yarn install
To learn how to get started, check out the Events or Insights sections.