Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 954 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 954 Bytes

Tests NPM

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