❀Nocturnal Programmer's Machine

    @vangware/parsers
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.11Β β€’Β PublicΒ β€’Β Published

    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.

    Install

    npm i @vangware/parsers

    DownloadsWeekly Downloads

    197

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    13.1 kB

    Total Files

    19

    Last publish

    Collaborators

    • lukeshiru