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

pavlokjs

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pavlokjs

JavaScript Wrapper for the Pavlok API

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
2
Weekly downloads
 
Created
Source

Build Status

pavlokjs

JavaScript Wrapper for the Pavlok API

You want to use your pavlok in a cool way. Its only a simple call away.

Instalation

$ npm install pavlokjs

Usage

var pavlok = require('pavlokjs');

// id is your pavlok id
pavlok.init({objectId: id});

pavlok.shock(strength);
// you can also chain them
pavlok.beep(frequency).shock(power);

Supported pavlok functions

For vibrate and shock, value is anywehre from 0-255. For beep and led, value is anywhere from 1-4.

beep(frequency)
blink(frequency)
shock(power)
vibrate(power)

Running tests

$ npm test

Small usage exmamples

Keywords

FAQs

Package last updated on 12 Dec 2015

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