Standalone Javascript client for Sentenai
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.babelrc
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
rollup.config.js

README.md

js-sentenai

Standalone JavaScript client for Sentenai

Build Status npm version

$ npm install --save sentenai

usage

const { Client, flare } = require('sentenai');
const { stream, select, gt } = flare;
const sentenai = new Client({ auth_key: '' });

const myStream = stream('my-stream-id');
const json = await sentenai.query(
  select()(
    myStream({ temp: gt(82.3) })
  )
).then(data => data.json());

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:

$ npx jest --watch