This is a lightweight, object orientated and small wrapper for the public LautFM-API. With following Features:
- types for nearly everything (more will be added soon)
- nearly full station coverage
- coverage for basic lautFM requests (status and so on)
npm install --save better-lautfm
For detailed explanation click here
Usage is currently only optimized for CommonJS, other builds will follow soon.
import { Station } from 'better-lautfm'
// dont do this in production
async function topLevelAwait() {
// init station class
const station = new Station('bravefm')
// fetch data
const data = await station.fetch().then(value => value)
console.log(data)
/* the following examples will be inserted here (please take care of imports) */
}
topLevelAwait()
const schedule = await station.getSchedule().then(value => value)
console.log(schedule)