1.4.0 • Published 1 year ago

@mdworld/radio-metadata v1.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

radio-metadata

Scalable library to read metadata from radio stations

Use

Clone repo

Run npm start npo2

Response type:

interface RadioMetadata {
  time?: {
    start?: ISOTimeString;
    end?: ISOTimeString;
  };
  broadcast?: {
    name?: string;
    presenter?: string[];
    imageUrl?: string;
  };
  song: {
    artist?: string;
    title?: string;
    imageUrl?: string;
    listenUrl?: string;
  };
}

Programmatic use

Install with npm i @mdworld/radio-metadata

When using in Node, make sure to polyfill the Fetch API with node-fetch.

import { getRadioMetaData } from "@mdworld/radio-metadata";
import { npo2 } from "@mdworld/radio-metadata/lib/presets/npo2";

// built your own schema with this as an example
const schema = npo2;

const run = async () => {
  const tracks = await getRadioMetaData(schema);
}
1.4.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago