Skip to content

Convert a Swiss-Chess Tournament (SWT) file into a valid Chess Tournament Exchange Format (CTX) file.

License

Notifications You must be signed in to change notification settings

fnogatz/swt2ctx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swt2ctx

Convert a Swiss-Chess Tournament (SWT) file into a valid Chess Tournament Exchange Format (CTX).

Installation

Simply install the package and its command line interface via npm:

npm install swt2ctx

Usage

The most comfortable way to convert SWT files is to use the command line interface:

swt2ctx < /my/tournament.SWT

There are multiple options to format the output, see swt2ctx --help for further information.

You can also use swt2ctx programmatically:

var convert = require('swt2ctx');
convert('/my/tournament.SWT', 
  { indent: 2, pretty: true, newline: '\n' }, 
  function handleXML(err, xml) {
  	// do whatever you want
  });

Supported SWT versions

Because this module uses the chesstournament.js' plugin to import SWT files, it supports the file versions provided by this module. Currently only tournaments of SWT version 8.xx can be parsed.

About

Convert a Swiss-Chess Tournament (SWT) file into a valid Chess Tournament Exchange Format (CTX) file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published