Skip to content

sentenai/js-sentenai

Repository files navigation

js-sentenai

Standalone JavaScript client for Sentenai

Build Status npm version

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

About

Standalone Javascript client for Sentenai

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published