sentenai

0.7.6 • Public • Published

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

Package Sidebar

Install

npm i sentenai

Weekly Downloads

4

Version

0.7.6

License

BSD-3-Clause

Unpacked Size

105 kB

Total Files

9

Last publish

Collaborators

  • brandly