I am trying to format code using the following JS-based plugin: https://github.com/beautify-web/js-beautify
All the examples are using NodeJS (it seems). I am only looking for a simple vanilla/code JavaScript solution.
Something like this:
let sourceContent = " function test() { ... }"
console.log(js-beautify(sourceContent));
Are there any available plugins out there? A jQuery solution is also fine.