garex/nodejs-gost-crypto

Export doesn't work if password is fully numeric

Hiller opened this issue · 2 comments

That's easy. Create a container with a numeric password like 123456. Export won't work as password will be converted to int.
Need to do smth like this

this.parsedOptions.password.toString()
garex commented

toString() will not help when value will be "007" for example as parseInt('007', 10).toString() === '7'.

So Bond, James Bond will not be happy.

Can you suggest some fresh mature cli pkg, that could replace https://github.com/node-js-libs/cli ?