node package manager

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.