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

88nine

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

88nine

Library for interacting with 88nine Radio Milwaukee

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by42.86%
Maintainers
1
Weekly downloads
 
Created
Source

88nine Radio Milwaukee

A node library for interacting with 88nine Radio Milwaukee.

npm install 88nine

Playlists

Fetch - Get a list of the 100 most recently played songs

const playlist = require('88nine').playlist;
playlist.fetch().then(function(songs) {
  // do something with the songs
  // Songs is an array of js objects with 
  // the following structure:

  [{ 
    playedAt: 2017-10-08T16:58:09.000Z,
    artist: 'Abby Jeanne',
    title: 'Cosmic Beings',
    album: 'Cosmic Beings- Single',
    composer: '' 
  }]
});

Last - Get the last N recently plaed songs (defaults to 1)

playlist.last().then(function(song) {
  // Song is the most recently played song
});

Song Event - playlist is an EventEmitter that emits a song event for every new playlist entry

playlist.on('song', function(song) {
  // Song is the song that is currently playing
  // (this is checked every 5 seconds)
});

FAQs

Package last updated on 08 Oct 2017

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