Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

evoactivity/xmltv-to-jsonapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚨🚨 Archived. Please see if @iptv/xmltv can fulfil your needs, you will need to write a serializer to output JSON:API structure.

XMLTV to JSON:API Build Status Code Climate issues

Make use of JSON:API's relationship model to work with XMLTV data

Install

$ yarn add xmltv-to-jsonapi

Usage

const fs = require('fs');
const xmltvToJsonapi = require('xmltv-to-jsonapi');

const xmltvData = fs.readFileSync('examples/epg.xml', 'utf-8');

(async () => {
  const result = await xmltvToJsonapi(xmltvData);

  // do something with your json
})();

API

xmltvToJsonapi(input)

input

Type: string | buffer

Takes in the XMLTV data as a string or file buffer