-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
When parsing command-line arguments with large integer values (> Number.MAX_SAFE_INTEGER), precision is lost because the value is converted to JavaScript Number.
mri(['--id', '9007199254740993'])
// { id: 9007199254740992 } // wrong! lost precisionThis affects downstream packages like cac which uses mri for argument parsing.
Proposed fix: Use BigInt for integers that exceed the safe integer range. See #28
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels