workonreader
v1.2.6
Published
WorkonReader is designed to convert data from a .workon file to JSON format.
Downloads
5
Maintainers
Readme
Workon Reader (WR)
WorkonReader is designed to convert data from a .workon file to JSON format.
What is this .workon file for?
A .workon file is a strongly typed JSON with a different data format that is similar to the JSON format. The library itself parses many types of data, and can write data to a .workon file by converting data from json
Example of .workon file format:
[-start-
{mynum: int64} -> 789 ;
{mystring: string} -> ' text ';
{mybool: bool} -> true ;
{myfloat: float} -> 5.2 ;
{mylist: list} -> ["el", 14, true, 5.2]
-end-]
Example of WorkonReader code:
const wr = require('workonreader')
const filePath = 'datas.workon';
const Promise = wr.workonRead(filePath);
Promise
.then(result => {
console.log(result);
})
.catch(error => {
console.error(error.message);
});
Advantages of .workon files
- Strong Typing
- Interesting data format
New in this version:
- Fixed bug with workonWrite func
- Add the docs
- Fixed parsing of lists
Version of WorkonReader : v1.2.6
Learn more