Cabrillo.js
- Now support CQWW series,CQWPX series,NAQP and Standard template log
- works in a browser, on a server
Introduction
Cabrillo.js is a JavaScript library that converts cabrillo contest files and json to each other.
Installation
Currently only npm installation is supported
npm install cabrillo --save
Usage
Convert JSON objects into cabrillo's standard format string
objectToCabrillo(json,option)
Example:
var cabrillo =var fs = // if in Node.jsvar data = fsvar option =contest:'NAQP'fs
Convert a cabrillo string to a json object
cabrilloToObject(String,option)
Example:
var cabrillo =var fs = // if in Node.jsvar data = fsvar option =contest:'NAQP'fs;
Example
The sample file example.js is stored in the example folder.
git clone https://github.com/YuYanDev/cabrillo.jscd cabrillo.jsnpm run example
License
Created by YuYan ( DE BG6TTI - K6TTI )