Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

bahaghari

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahaghari

Functional javascript API wrapper for Razer Chroma REST api.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Bahaghari

Functional javascript API wrapper for Razer Chroma REST api.

Work in progress

Usage

import * as B from 'bahaghari';

const app = {
    title: 'App Title',
    description: 'App Desc',
    author: {
        name: 'Cyrus',
        contact: `my.email@email.com`
    },
    device_supported: ['keyboard', 'mousepad', ...]
}

const chromaIntance = B.createChroma(app);

// apply effects
await B.setWaveAnimation({
    device: `keyboard`,
    cycles: 5,
    colors: ['#fff', `red`, ...]
}, chromaInstance);

// cleanup / close
await B.stop(chromaInstance);

Functions

Work in progress

  • createBGRColor :: hex_string || {r: num, b: num, g: num} -> bgr: num
  • createChroma :: app -> Promise
  • setEffect :: OPTS {device, method, body} , chroma -> Promise<>
  • deleteEffect
  • stop
  • setCustomEffect
  • setBreathingAnimation
  • setWaveAnimation
  • setOffEffect
  • setStaticEffect

FAQs

Package last updated on 07 May 2018

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