number-safe-parse

Credit

A safer way to parse string to number

This Project rely on bun toolchain

How to use it?

import { numberSafeParse } from "@ghoullier/number-safe-parse"

const parsed = numberSafeParse('42')

parsed === 42

Install project

bun install

Run test

bun test

Build the project

bun run build