Sounds a bit like overkill to me:
var decimal = require('dec-to-binary')
console.log(decimal.decimal("10"));
Instead of:
console.log(parseInt("10").toString(2))
Or if you expect really large numbers:
console.log(BigInt("10").toString(2))
Seems to be python focussed instead of JS.
The author is looking for a cheap solution for validating solutions to coding problems.
Instead of using a (cloud based) backend one could also look at validating solutions in the browser e.g. using something like https://skulpt.org/ or https://github.com/iodide-project/pyodide