# parse-key-value

> Pure JavaScript parser for key1=value1;"key 2"="value 2"; strings.

Latest version **1.0.0** (published 2016-02-16) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install parse-key-value
pnpm add parse-key-value
yarn add parse-key-value
bun add parse-key-value
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-02-16 |
| First published | 2016-02-16 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stefan Hamminga |
| Maintainers | stefanhamminga |
| Keywords | parser, key, value |

## Links

- npm: https://www.npmjs.com/package/parse-key-value
- Repository: https://github.com/StefanHamminga/parse-key-value.js
- Homepage: https://github.com/StefanHamminga/parse-key-value.js#readme
- Issues: https://github.com/StefanHamminga/parse-key-value.js/issues
- npm.io page: https://npm.io/package/parse-key-value

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-02-16

## README

# parse-key-value
JavaScript parser for key1=value1;"key 2"="value 2"; strings.

## Installation

```sh
npm install --save parse-key-value
```

## Usage

```javascript
const string = "id=myId;description='My test string';weight=0.5;bool=true";

const parse = require('parse-key-value');

// either create a new object:
const object = parse(string);

// or extend an existing one:
const object = {};
parse(string, object);
```

should result in:

```javascript
const object = {
    id: "myId",
    description: "My test string",
    weigth: 0.5,
    bool: true
};
```

## Notes & license
This project is available on [GitHub](https://github.com/StefanHamminga/parse-key-value.js) and [npm](https://www.npmjs.com/package/parse-key-value).

The project is licensed as [LGPLv3](http://www.gnu.org/licenses/lgpl-3.0.html), the license file is included in the project directory.

Copyright 2016 [Stefan Hamminga](mailto:stefan@prjct.net) - [prjct.net](https://prjct.net)

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