Skip to content

CourtHive/tods-tmx-classic-converter

Repository files navigation

tods-tmx-classic-converter

Converts exported tournament records from TMX 1.9 to TODS

Converted files may be used with the Competition Factory or drag/dropped into CourtHive TMX 2.0.

Installation

npm i tods-tmx-classic-converter

Use

See examples directory...

cd example

node

const { TMX2TODS } = require('./TMX2TODS');

// convert all files in sourceDir
TMX2TODS({
  sourceDir: '.',
  targetDir: '.',
  targetExtension, // optional file extension, defaults to '.tods.json'
});