JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q43323F
  • License ISC

this is a test

Package Exports

  • tactilus-mat-status
  • tactilus-mat-status/app.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tactilus-mat-status) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tactilus-mat-status

this is a test

Installation

Install my-project with npm

  npm install tactilus-mat-status
    const {EventSource} =require("eventsource")
    const {getStatusFromMatSensors} =require("tactilus-mat-status")
    const es = new EventSource('http://10.0.0.1/api/sse');
    es.addEventListener('newframe', function (e) {
        var pressureMatrix = JSON.parse(e.data);
        const status = getStatusFromMatSensors(pressureMatrix.readings)
        console.log(new Date(),status)
    })