XMLTV to JSON:API
Make use of JSON:API's relationship model to work with XMLTV data
Install
$ yarn add xmltv-to-jsonapi
Usage
const fs = ;const xmltvToJsonapi = ; const xmltvData = fs; async { const result = await ; // do something with your json};
API
xmltvToJsonapi(input)
input
Type: string | buffer
Takes in the XMLTV data as a string or file buffer