node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป

gchempaint2json

gchempaint2json

Convert simple gchempaint files containing just molecules to a JSON representation.

Output format

See benzene.json

API

convert(xml)

XML is expected to be an XML string representing a gchempaint document. Returns the JSON representation of the document.