Open toschdev opened 7 years ago
The issue is with minimist:
vorpal/dist/util.js here -> calls minimist
arr = minimist(arr, opts);
minimist.js here
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
Integer range for Number:
Solution: implement something like big-integer instead of Number()
within minimist
Vorpal seems to be using numbers, even though I cannot find the exact code I am looking for, maybe you can help me.
The number I put in there seems to exceed JavaScript biggest numbers, therefore it just rounds the number starting from 9007199254740991.
It would be great to either have a bignumber library or using strings here. Maybe there is a workaround I did not think of yet?