1.2.0 • Published 4 years ago

orbit-js-client v1.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Orbit JS Client

The orbit telemetry client for JavaScript

npm node

Setup

Install the util:

npm install orbit-js-client

Require the util somewhere in your code:

const orbit = require('orbit-js-client')({
    server: 'https://orbit.example.com',
    token: 'example-token',
    project: 'orbit-test-project',
    env: 'dev'
});

That's it the Orbit client will now connect to the Orbit Server and send over the required data

Stop

To stop Orbit from sending data use the function provided in the return value from the Orbit client:

const orbit = require('orbit-js-client')({
    server: 'https://orbit.example.com',
    token: 'example-token',
    project: 'orbit-test-project',
    env: 'dev'
});

orbit.stop();

License

MIT

1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago