Thanks for taking the time to improve this package.
npm install
npm run typecheck
npm test
npm run buildPlease keep changes focused and include tests for behavior changes. Small API improvements are welcome when they keep numeric-unit parsing predictable, typed, and easy to use in both Node and browser-oriented tooling.
Before opening a pull request, run:
npm run typecheck
npm test
npm run buildWhen reporting a bug, include:
- the package version;
- the input that failed;
- the options used;
- the expected diagnostic or parsed value;
- the actual diagnostic code or parsed value.
This package parses one numeric value and one unit. Please keep feature requests focused on diagnostics, formatting and validation policies rather than full CSS parsing, formula parsing or unit conversion.