# @vangware/parsers

> 👁️‍🗨️ Parsers without nonsense

Latest version **1.4.21** (published 2023-10-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @vangware/parsers
pnpm add @vangware/parsers
yarn add @vangware/parsers
bun add @vangware/parsers
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.4.21 |
| Published | 2023-10-19 |
| First published | 2022-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=21 |
| Dependencies | 1 |
| Unpacked size | 19.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vangware |
| Maintainers | lukeshiru |
| Keywords | parsers, typescript, vangware |

## Links

- npm: https://www.npmjs.com/package/@vangware/parsers
- Repository: https://github.com/vangware/libraries
- Homepage: https://vangware.com/libraries/vangware_parsers/
- Issues: https://github.com/vangware/libraries/issues
- npm.io page: https://npm.io/package/@vangware/parsers

## Dependencies (1)

- [@vangware/types](https://npm.io/package/@vangware/types.md) 6.3.7

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.4.21 (latest) — 2023-10-19
- 1.4.20 — 2023-10-18
- 1.4.19 — 2023-10-11
- 1.4.18 — 2023-10-07
- 1.4.17 — 2023-10-05
- 1.4.16 — 2023-10-03
- 1.4.14 — 2023-09-25
- 1.4.13 — 2023-09-21
- 1.4.12 — 2023-09-14
- 1.4.11 — 2023-09-14
- 1.4.10 — 2023-09-14
- 1.4.9 — 2023-09-13
- 1.4.8 — 2023-09-12
- 1.4.7 — 2023-09-08
- 1.4.6 — 2023-09-02
- … 55 more at https://npm.io/package/@vangware/parsers/versions

## README

<img id="logo" alt="@vangware/parsers" src="https://vangware.com/logos/vangware_parsers.svg" height="128" />

![Coverage][coverage-badge] ![License][license-badge]
![NPM Version][npm-version-badge] ![Open Issues][open-issues-badge]
![Size][size-badge]

👁️‍🗨️ Parsers without nonsense.

Instead of throwing or returning values like `NaN`, the parsers in this library
either return the expected parsed value or `undefined` (making use of the
[Maybe](https://vangware.com/libraries/vangware_types/#maybe) type).

## Usage

### 📦 Node

Install `@vangware/parsers` as a dependency:

```bash
pnpm add @vangware/parsers
# or
npm install @vangware/parsers
# or
yarn add @vangware/parsers
```

Import it and use it:

```typescript
import { parseDecimal } from "@vangware/parsers";

parseDecimal("101"); // 101
parseDecimal("nope"); // undefined
```

### 🦕 Deno

Import `@vangware/parsers` using the `npm:` prefix, and use it directly:

```typescript
import { parseDecimal } from "npm:@vangware/parsers";

parseDecimal("101"); // 101
parseDecimal("nope"); // undefined
```

### 🌎 Browser

Import `@vangware/parsers` using [esm.sh][esm.sh], and use it directly:

```html
<script type="module">
	import { parseDecimal } from "https://esm.sh/@vangware/parsers";

	parseDecimal("101"); // 101
	parseDecimal("nope"); // undefined
</script>
```

## Useful links

-   📝 [Documentation][documentation]: TypeDoc generated documentation.
-   ⏳ [Changelog][changelog]: List of changes between versions.
-   ✅ [Tests Coverage][coverage]: Coveralls page with tests coverage.

<!-- Reference -->

[changelog]:
	https://github.com/vangware/libraries/blob/main/packages/@vangware/PARSERS/CHANGELOG.md
[coverage-badge]:
	https://img.shields.io/coveralls/github/vangware/libraries.svg?labelColor=666&color=0a8
[coverage]: https://coveralls.io/github/vangware/libraries
[documentation]: https://vangware.com/libraries/vangware_parsers/
[esm.sh]: https://esm.sh
[license-badge]:
	https://img.shields.io/npm/l/@vangware/parsers.svg?labelColor=666&color=0a8
[npm-version-badge]:
	https://img.shields.io/npm/v/@vangware/parsers.svg?labelColor=666&color=0a8
[open-issues-badge]:
	https://img.shields.io/github/issues/vangware/libraries.svg?labelColor=666&color=0a8
[size-badge]:
	https://img.shields.io/badge/dynamic/json?label=size&labelColor=666&color=0a8&suffix=KiB&query=%24.size&url=https%3A%2F%2Fraw.githubusercontent.com%2Fvangware%2Flibraries%2Fmain%2Fpackages%2F%40vangware%2Fparsers%2Fpackage.json

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