1.4.0 • Published 2 years ago

@mdworld/radio-metadata v1.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago