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

mf-parser

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mf-parser - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

8

package.json
{
"name": "mf-parser",
"version": "2.0.0",
"version": "2.1.0",
"description": "Parse a molecular formula",

@@ -25,4 +25,4 @@ "main": "lib/index.js",

"chemical-elements": "^2.0.0",
"chemical-groups": "^2.0.0",
"mf-utilities": "^2.0.0"
"chemical-groups": "^2.1.0",
"mf-utilities": "^2.0.1"
},

@@ -32,3 +32,3 @@ "devDependencies": {

},
"gitHead": "c6ebfbd64c711f8839a02a43c5708e71a379885b"
"gitHead": "5dbfd516cc7f0aa51bca03f1e2384775b047db8a"
}

@@ -85,2 +85,19 @@ import { MF } from '..';

it('T', () => {
let mfT = new MF('T');
let infoT = mfT.getInfo();
let mf3H = new MF('[3H]');
let info3H = mf3H.getInfo();
expect(infoT).toStrictEqual(info3H);
expect(infoT).toStrictEqual({
atoms: { H: 1 },
charge: 0,
mass: 3.0160492779,
mf: '[3H]',
monoisotopicMass: 3.0160492779,
unsaturation: 0.5,
});
});
it('H2Si(OH)2', () => {

@@ -87,0 +104,0 @@ let mf = new MF('H2Si(OH)2');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc