This package has been deprecated

Author message:

🚚 @vangware/parsers is now @lou.codes/parsers

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

1.4.21Β β€’Β PublicΒ β€’Β Published

Coverage License NPM Version Open Issues Size

πŸ‘οΈβ€πŸ—¨οΈ 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

Install @vangware/parsers as a dependency:

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

Import it and use it:

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

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

πŸ¦• Deno

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

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

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

🌎 Browser

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

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

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

Package Sidebar

Install

npm i @vangware/parsers

Weekly Downloads

111

Version

1.4.21

License

MIT

Unpacked Size

20.4 kB

Total Files

27

Last publish

Collaborators

  • loucyx