# sequence-node

> Node SDK for Sequence

Latest version **0.2.10** (published 2021-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install sequence-node
pnpm add sequence-node
yarn add sequence-node
bun add sequence-node
```

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.10 |
| Published | 2021-07-19 |
| First published | 2021-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 351.7 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Helson Taveras |
| Maintainers | helsont |

## Links

- npm: https://www.npmjs.com/package/sequence-node
- Repository: https://github.com/sequence-so/sequence-node
- npm.io page: https://npm.io/package/sequence-node

## Dependencies (11)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [url](https://npm.io/package/url.md) ^0.11.0
- [uuid](https://npm.io/package/uuid.md) ^8.3.2
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [assert](https://npm.io/package/assert.md) ^2.0.0
- [uniqid](https://npm.io/package/uniqid.md) ^5.3.0
- [axios-retry](https://npm.io/package/axios-retry.md) ^3.1.9
- [component-type](https://npm.io/package/component-type.md) ^1.2.1
- [join-component](https://npm.io/package/join-component.md) ^1.1.0
- [remove-trailing-slash](https://npm.io/package/remove-trailing-slash.md) ^0.1.1
- [@segment/loosely-validate-event](https://npm.io/package/@segment/loosely-validate-event.md) ^2.0.0

## Recent versions

- 0.2.10 (latest) — 2021-07-19
- 0.2.9 — 2021-07-19
- 0.2.8 — 2021-06-08
- 0.2.7 — 2021-06-08
- 0.2.6 — 2021-06-08
- 0.2.5 — 2021-06-08
- 0.2.4 — 2021-06-08
- 0.2.3 — 2021-06-08
- 0.2.2 — 2021-06-07
- 0.2.1 — 2021-06-07

## README

## Sequence Node SDK
Send data into Sequence using this library.

```
yarn add sequence-node
```

```
npm install sequence-node
```

### Track Usage:
```
import Sequence from 'sequence-node';
const analytics = new Sequence(process.env.SEQUENCE_API_KEY)
analytics.track({
  // id of user (required)
  userId: 'my-user-id',
  // event name (required)
  event: 'User Registered',
  // properties associated with event
  properties: {
    firstName: 'John',
    lastName: 'Smith'
  },
  // original event date
  timestamp: new Date()
})
```

### Identify Usage
```
analytics.identify({
  // id of user (required)
  userId: 'my-user-id',
  // traits associated with the user
  traits: {
    firstName: 'John',
    lastName: 'Smith'
  }
})
```
### Supported Events
- Identify: https://segment.com/docs/connections/spec/identify/
- Track: https://segment.com/docs/connections/spec/track/

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