@vangware/parsers

Vangware's Parsers

Build Status Coverage License NPM Version Open Issues

👁️‍🗨️ 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 type).

Usage

📦 Node

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

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

🦕 Deno

import { parseDecimal } from "https://cdn.skypack.dev/@vangware/parsers?dts";

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

Documentation

Documentation can be found HERE. It is auto-generated with typedoc based on the JSDocs and the types in the source. Shouldn't be necessary to read this, code editors like VS Code integrate the documentation in the UI.

Changelog

Changelog can be found HERE.

Test coverage

Test coverage can be found HERE.