npm.io
1.0.2 • Published 3 years ago

@stablyhq/stably

Licence
Version
1.0.2
Deps
2
Size
13 kB
Vulns
1
Weekly
0

Stably Banner

@stablyhq/stably-node-sdk

NPM

Installation

npm install @stablyhq/stably --save or yarn add @stablyhq/stably

Usage

1) Initialize

import { Analytics } from 'stablyhq/stably'

const analytics = Analytics("YOUR_WRITE_KEY")

You can find your write key at https://app.stably.dev/

2) Call

Re-use the above analytics instance and call track with your event name:

analytics.track("account_creation_start")

Development

To build, you can run npm run build.

To have updated versions sent with the library, you'll want to first run npm run gen

To publish, you can run: npm publish --access public

Contributing

Please feel free to open issues or pull requests. We love any feedback!