Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

mf-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mf-parser

[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url]


Version published
Weekly downloads
1.1K
decreased by-56.71%
Maintainers
6
Weekly downloads
 
Created

mf-parser

NPM version npm download

.

Installation

$ npm install mf-parser

API Documentation

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

License

MIT

FAQs

Package last updated on 21 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts