Package Exports
- @rudderstack/rudder-sdk-node
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 (@rudderstack/rudder-sdk-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
analytics-node
Installation
$ npm install @rudderstack/rudder-sdk-nodeUsage
const Analytics = require("@rudderstack/rudder-sdk-node");
// we need the batch endpoint of the Rudder server you are running
const client = new Analytics("write key", "<data-plane-uri>/v1/batch");
client.track({
event: "event name",
userId: "user id"
});Documentation
Documentation is available at https://segment.com/libraries/node.