New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dermah/pulsar-transmitter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dermah/pulsar-transmitter

The pulsar packet transmitter

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

pulsar-transmitter

Node.js implementation of a Pulsar Transmitter

Very tightly coupled with pulsar v0.2.x, see that readme for how pulsar-transmitter is used.

Usage

This will start a pulsar server thing at http://localhost:3000:

let Detector = require('@dermah/pulsar-transmitter');
let detector = new Detector(config);

config is an object that looks like:

{
  "totalCols" : 2,
  "totalRows" : 2,
  "songPath": "./song.mp3"
}

where totalCols and totalRows are the number of columns and rows respectively that there will be in the pulsar grid. songPath is used by other modules.

Give pulses to the detector like so:

detector.detect('pulse', pulse);

It's a good idea to pass pulses emitted an pulse emitter (like pulsar-input-keyboard) straight to the detector. If you have a pulse emitter in input, you could do this like so:

input.on('pulse', pulse => {
  detector.detect('pulse', pulse);
});

Keywords

FAQs

Package last updated on 23 Jun 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc