Hi swedebugia,Super swell to see you take an interest in this! :D.Some points;It seems you wrote your own sanitize-npm-version, but this is not (at all) how npmdeals with versions; I implore you to have a look at https://semver.org/ again to seewhat all the silly squigles mean :).
[...]