1.0.5 • Published 7 years ago

resin-cli-events v1.0.5

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

resin-cli-events

npm version dependencies Build Status Build status

Join our online chat at Gitter chat

Resin.io CLI event client.

Role

The intention of this module is to provide an easy interface for the Resin CLI to send analytics.

Installation

Install resin-cli-events by running:

$ npm install --save resin-cli-events

Documentation

events.send(event, options)

Any extra option apart from application and device will be sent to the server as extra event data.

Consult https://github.com/resin-io/resin-event-log for available events.

Kind: static method of events
Summary: Send a CLI event
Access: public

ParamTypeDescription
eventStringevent name
optionsObjectevent options
options.applicationNumberapplication id
options.deviceNumberdevice id

Example

events.send('application.create', application: 27)

Support

If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.

Tests

Run the test suite by doing:

$ gulp test

Contribute

Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:

$ gulp lint

License

The project is licensed under the Apache 2.0 license.

1.0.5

7 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago