Socket
Book a DemoInstallSign in
Socket

kusc_api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kusc_api

Basic wrapper for KUSC's audio streams

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

KUSC API

A Node.js wrapper for the KUSC radio streaming API.

NPM

Installation

npm install kusc-api

Usage

import { getStreamUrl, getCurrentMetadata, selectStream } from 'kusc-api';

// Get stream URL
const url = await getStreamUrl('KUSC', 'AAC96');

// Get current track metadata
const metadata = await getCurrentMetadata('KUSC');

// Interactive stream selection
const stream = await selectStream();

API Reference

getStreams()

Gets a list of available streams

getStreamInfo(streamId)

Gets information about the given stream id

getStreamUrl(streamId, preferredStream (optional))

Gets a suitable audio stream URL for the given id and preferred format

getCurrentMetadata(streamId, includeImage(optional))

Gets current track metadata for the given stream id, optionally including image data

selectStream()

Shows a nice dialog for selecting a stream using blessed

Keywords

kusc

FAQs

Package last updated on 30 Apr 2025

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