0.0.2 • Published 2 years ago

@vibbioinfocore/phyd3-parser-compat v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Tests

phyd3-parser-compat

A compatability library implementing PhyloXML parsing from the legacy version of PhyD3.

Installation

npm install @vibbioinfocore/phyd3-parser-compat

Usage

In the browser:

import {makeCompatTable, phyloxml} from "@vibbioinfocore/phyd3-parser-compat";

const parse = (text) => {
    const parser = new DOMParser()
    const doc = parser.parseFromString(text);
    return makeCompatTable(phyloxml.parse(doc));
};

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update/add tests as appropriate.

License

MIT