You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sentenai

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sentenai

JavaScript client for Sentenai

0.7.6
latest
Source
npmnpm
Version published
Weekly downloads
5
25%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

sentenai

FAQs

Package last updated on 21 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts