Const
Decimal scalars with a smaller Regex-only parser bundle. Use withConfig for Quantity settings or createQuantityClass to select another backend/parser.
withConfig
createQuantityClass
import { Quantity } from '@neutrium/quantity/regex';new Quantity('2 km/h').to('m/h').scalar.toString(); // "2000" Copy
import { Quantity } from '@neutrium/quantity/regex';new Quantity('2 km/h').to('m/h').scalar.toString(); // "2000"
Decimal scalars with a smaller Regex-only parser bundle. Use
withConfigfor Quantity settings orcreateQuantityClassto select another backend/parser.