# molecular-decomposer

> Parsed a molecule (string) and give details elements count as an object.

Latest version **1.1.1** (published 2020-02-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install molecular-decomposer
pnpm add molecular-decomposer
yarn add molecular-decomposer
bun add molecular-decomposer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-02-10 |
| First published | 2020-02-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Damien Duvacher |
| Maintainers | kahikwic |

## Links

- npm: https://www.npmjs.com/package/molecular-decomposer
- Repository: https://github.com/Dduvacher/molecular-parser
- Issues: https://github.com/Dduvacher/molecular-parser/issues
- npm.io page: https://npm.io/package/molecular-decomposer

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^3.7.5

## Recent versions

- 1.1.1 (latest) — 2020-02-10
- 1.0.0 — 2020-02-10

## README

# molecular-parser
Parsed a molecule (string) and give details elements count as an object.

## Usage

```javascript
import molecularParser from 'molecular-parser';

console.log(molecularParser.parse('H2O'));
// Expected output: {'H': 2, 'O': 1}
console.log(molecularParser.parse('Mg(OH)2'));
// Expected output: {'Mg': 1, 'O': 2, 'H': 2}
console.log(molecularParser.parse('K4[ON(SO3)2]2'));
// Expected output: {'K': 4, 'O': 14, 'N': 2, 'S': 4}
```

---
_Source: https://npm.io/package/molecular-decomposer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
