# @expo/rudder-sdk-node

> Compact fork of rudder-node-sdk

Latest version **1.1.1** (published 2021-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @expo/rudder-sdk-node
pnpm add @expo/rudder-sdk-node
yarn add @expo/rudder-sdk-node
bun add @expo/rudder-sdk-node
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-11-22 |
| First published | 2021-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 7 |
| Unpacked size | 35.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Expo |
| Maintainers | kgc00, fiber-god, ide, brentvatne, ccheever, evanbacon, quinlanj, esamelson, expoadmin, charliecruzan, tsapeta, dsokal, tcdavis, exponent, wschurman, bbarthec, jkhales, wkozyra, bycedric, lukmccall, jonsamp, princefleaswallow, andyboythekid, kudochien |
| Keywords | analytics |

## Links

- npm: https://www.npmjs.com/package/@expo/rudder-sdk-node
- Repository: https://github.com/expo/rudder-sdk-node
- Homepage: https://github.com/expo/rudder-sdk-node#readme
- Issues: https://github.com/expo/rudder-sdk-node/issues
- npm.io page: https://npm.io/package/@expo/rudder-sdk-node

## Dependencies (7)

- [md5](https://npm.io/package/md5.md) ^2.2.1
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [fetch-retry](https://npm.io/package/fetch-retry.md) ^4.1.1
- [@expo/bunyan](https://npm.io/package/@expo/bunyan.md) ^4.0.0
- [remove-trailing-slash](https://npm.io/package/remove-trailing-slash.md) ^0.1.0
- [@segment/loosely-validate-event](https://npm.io/package/@segment/loosely-validate-event.md) ^2.0.0

## Recent versions

- 1.1.1 (latest) — 2021-11-22
- 1.1.0 — 2021-09-28
- 1.0.7 — 2021-08-10
- 1.0.6 — 2021-08-10
- 1.0.5 — 2021-08-10
- 1.0.4 — 2021-08-10
- 1.0.3 — 2021-08-05

## README

# `@expo/rudder-sdk-node` ![CI](https://github.com/expo/rudder-sdk-node/actions/workflows/ci.yml/badge.svg)

A lightweight Node SDK for RudderStack with minimal dependencies. This is designed for client-side Node applications like CLIs. This library is smaller than [RudderStack's Node library](https://github.com/rudderlabs/rudder-sdk-node) and doesn't include support for the Redis persistence queue.

It is fully written in TypeScript and exports first-class type declarations to users of this package.

## Installation

```bash
$ npm install @expo/rudder-sdk-node
```

## Usage

```js
import Analytics from '@expo/rudder-sdk-node';

// Specify 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',
});

const flushResponse = await client.flush();
```

## Documentation

Look at the TypeScript type declarations and the source code of this library.

RudderStack's documentation for a different but related library is available [here](https://docs.rudderstack.com/rudderstack-sdk-integration-guides/rudderstack-node-sdk).

---
_Source: https://npm.io/package/@expo/rudder-sdk-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
