mf-parser

3.1.1 • Public • Published

mf-parser

NPM version npm download

.

Installation

$ npm install mf-parser

Example

const parseToHtml = require('mf-parser').parseToHtml;
let html = parseToHtml('Et3N . 2HCl);

You may also be interested to parse first the MF and then retrieve display representation

const MFParser = require('mf-parser');
let parsed = MFParser.parse('Et3N . 2HCl');
let displayed = MFParser.toDisplay(parsed);
// displayed could be used to ocreate a custom renderer
console.log(displayed);

Unsaturation

Unsaturation is based on Pretsch

http://pubs.acs.org/doi/pdf/10.1021/ci000135o

Aromaticity index

https://dx.doi.org/10.1002/rcm.2386

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i mf-parser

Weekly Downloads

7,121

Version

3.1.1

License

MIT

Unpacked Size

95.2 kB

Total Files

31

Last publish

Collaborators

  • targos
  • lpatiny
  • cheminfo-bot
  • stropitek