sentenai
v0.7.6
Published
JavaScript client for Sentenai
Downloads
21
Maintainers
Readme
js-sentenai
Standalone JavaScript client for Sentenai
This library is still unstable. Install an exact version to avoid breaking changes.
$ npm install --save --save-exact sentenai
usage
const Sentenai = require('sentenai');
const sentenai = new Sentenai.Client({ auth_key: '' });
const pattern = await sentenai.savePattern('my-stream-id when temp > 82.3');
const spans = await pattern.search();
View our docs to learn more.
development
All testing is currently handled by jest
.
$ npm install
$ npm test
To automatically run jest
as you update code:
$ npm test -- --watch
To evaluate current testing coverage:
$ npm test -- --coverage
# generate html report in coverage/
$ npm test -- --coverage --coverageReporters "html"
$ open coverage/index.html