Lawg.js is a JavaScript library specifically built for interacting with lawg’s API asynchronously.
import Lawg from '@lawgdev/js';
const lawg = new Lawg({ token: process.env.LAWG_TOKEN, // ex: lawg_xxxxxxxxxxxxxxxxx project: "my-cool-project", ua: req.headers["user-agent"], // Optional });
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.