Package Exports
- lotus-node
- lotus-node/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lotus-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Lotus Node.js Library
Official Lotus Python library to capture and send events to any Lotus instance (self-hosted or cloud).
Installing
Install the lotus-node package for use in your node.js based backend.
npm install lotus-nodeInitializing
First grab a new api key from the Settings tab. Then change the host to wherever you want to send data to and omit the line if you are using Lotus Cloud.
const lotus = new Lotus(api_key, {
host: "https://www.uselotus.app/", // You can omit this line if using Lotus Cloud
});Making calls
Please refer to the Lotus documentation for more information on how to use the library.
Questions?
Join our Slack community.
Thank you
This library is largely based on the posthog-node package.