Reads Trio formatted text.
// Read a trio file's dicts...for (let dict of TrioReader.readAllDicts(trioStr)) { // Do something with the dict.}// Read a trio file as a grid...const gridWithSites = TrioReader.readGrid(trioStr).filter('site')// Alternatively use the reader as an iterator...for (let dict of new TrioReader(trioStr)) { // Do something with the dict.} Copy
// Read a trio file's dicts...for (let dict of TrioReader.readAllDicts(trioStr)) { // Do something with the dict.}// Read a trio file as a grid...const gridWithSites = TrioReader.readGrid(trioStr).filter('site')// Alternatively use the reader as an iterator...for (let dict of new TrioReader(trioStr)) { // Do something with the dict.}
https://project-haystack.org/doc/Trio
Constructors a new reader.
The scanner used for the input.
Iterate the reader's dicts.
Read all the dicts from the reader.
All the dicts in an array.
Read the next dict or return undefined if at the end of the stream.
The next dict.
Error if there's a problem reading the trio file.
Read all the dicts into a grid.
The grid.
Static
Read a trio file and return an array of dicts.
The trio input.
An array of dicts.
Read a trio file and return a grid.
A grid.
Generated using TypeDoc
Reads Trio formatted text.
See
https://project-haystack.org/doc/Trio