mf-parser
TypeScript icon, indicating that this package has built-in type declarations

3.3.0 • 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

1,800

Version

3.3.0

License

MIT

Unpacked Size

307 kB

Total Files

170

Last publish

Collaborators

  • targos
  • lpatiny
  • cheminfo-bot
  • stropitek