npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

impulse99-radio-js

v1.0.1

Published

Created for Impulse99 Radio, a radio station for the FiveM Server.

Downloads

1

Readme

impulse99-radio-js

This is a node.js module for the Impulse99 Radio API.

Features

  • Get Station
  • Get Listeners
  • Get Currently Playing
  • Get Next Playing
  • Get Song History
  • Get Radio Status

Installation

npm install impulse99-radio-js

Usage

const ImpulseRadio = new (require("impulse99-radio-js"))();

// GET STATION
const station = await ImpulseRadio.getStation();
console.log(station);

// GET LISTENERS
const listeners = await ImpulseRadio.getListeners();
console.log(listeners);

// GET CURRENTLY PLAYING
const NowPlaying = await ImpulseRadio.getNowPlaying();
console.log(NowPlaying);

// GET NEXT PLAYING
const NextPlaying = await ImpulseRadio.getNextPlaying();
console.log(NextPlaying)

// GET HISTORY
const SongHistory = await ImpulseRadio.getSongHistory();
console.log(SongHistory);

// GET RADIO STATUS
const RadioStatus = await ImpulseRadio.getRadioStatus();
console.log(RadioStatus);

Example Outputs

ImpulseRadio.getStation();
{
    success: true,
    name: 'Impulse99 Radio',
    listen_url: 'https://radio.impulse99.com/listen/impulse99_radio/radio.mp3',
    public_player_url: 'https://radio.impulse99.com/public/impulse99_radio',
    playlist_pls_url: 'https://radio.impulse99.com/public/impulse99_radio/playlist.pls',
    playlist_m3u_url: 'https://radio.impulse99.com/public/impulse99_radio/playlist.m3u'
}
ImpulseRadio.getListeners();
{ 
    success: true, 
    total: 64, 
    unique: 64, 
    current: 64
}
ImpulseRadio.getNowPlaying();
{
    success: true,
    duration: '5 Minutes - 53 Seconds',
    duration_seconds: 353,
    song: 'Tears',
    artist: 'Watami',
    album: '',
    art: 'https://impulse99.com/fivem/99_square.png',
    status: { elapsed: 293, remaining: 60 }
}
ImpulseRadio.getNextPlaying();
{
    success: true,
    duration: '6 Minutes - 2 Seconds',
    duration_seconds: 362,
    song: "Don't Stop Movin' (Darts Remix)",
    artist: 'S Club 7',
    album: 'Mooch Records',
    art: 'https://radio.impulse99.com/api/station/1/art/23d39535d9467f35a02df90b-1606156354.jpg'
}
ImpulseRadio.getSongHistory();
[
    {
        success: true,
        duration: '5 Minutes - 53 Seconds',
        duration_seconds: 353,
        song: 'Tears',
        artist: 'Watami',
        album: '',
        art: 'https://impulse99.com/fivem/99_square.png'
    },
    {
        success: true,
        duration: '4 Minutes - 31 Seconds',
        duration_seconds: 271,
        song: 'All I Know',
        artist: 'Madp',
        album: '',
        art: 'https://impulse99.com/fivem/99_square.png'
    },
    {
        success: true,
        duration: '4 Minutes - 50 Seconds',
        duration_seconds: 290,
        song: 'Avalon (VIP)',
        artist: 'Maduk',
        album: 'Escapism',
        art: 'https://radio.impulse99.com/api/station/1/art/1a4f66a462e6ab26be0a89f1-1658331965.jpg'
    },
    {
        success: true,
        duration: '5 Minutes - 21 Seconds',
        duration_seconds: 321,
        song: 'Revolution (Cascada Vs. Tune Up! Remix)',
        artist: 'DJ Klubbingman',
        album: 'The Essential Cascada Remixed Singles CD1',
        art: 'https://radio.impulse99.com/api/station/1/art/5c8ddb45cc13ef1a430cdc9c-1606160663.jpg'
    },
    {
        success: true,
        duration: '5 Minutes - 26 Seconds',
        duration_seconds: 326,
        song: 'LA LA LI LA LA (THE SONG OF RISING SUN)',
        artist: 'MACHO GANG',
        album: 'SUPER EUROBEAT presents 頭文字[イニシャル]D Dream Collection Vol.3 DISC2:EXTENDED VERSION',
        art: 'https://radio.impulse99.com/api/station/1/art/e0b3a78716ff91b1f8caea45-1606162947.jpg'
    }
]
ImpulseRadio.getRadioStatus();
{ 
    success: true, 
    online: true, 
    cache: null 
}

Disclaimer: This is not made by Impulse99 so this is not official!