Socket
Socket
Sign inDemoInstall

node-soundtouch

Package Overview
Dependencies
13
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-soundtouch

Bose Soundtouch API for node.js


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
2.95 MB
Created
Weekly downloads
 

Readme

Source

node-soundtouch

node-soundtouch is a Node.js library that implements the Bose Soundtouch API.

It is currently in an alpha state and only implements as much of the API as I currently need. Eventually though the intent is to support the full API.

This library is authored in TypeScript and compiled into ES6. It uses ES6 promises and can be used with async/await or promise chaining.

Installation

npm install --save node-soundtouch

This package includes TypeScript typings that should be automatically detected.

Usage

Below is an example in ES6/TypeScript

import {DiscoveryService, Key} from "node-soundtouch";

const device = await DiscoveryService.findDevice("My Device");

if (device) {
  await device.setVolume(30);
  await device.pressKey(Key.ShuffleOn);
  await device.powerOn();
  await device.pressKey(Key.Preset1);
}

Contributing

Contributions are welcome, though I do have a vision of how I want this project to reach v1.0 so feel free to open an issue before creating a pull request to see if we're on the same page.

Keywords

FAQs

Last updated on 19 Sep 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc