Validate that inline js in a html file is correct javascript
npm install validate-inline-jsValidate that inline js in a html file is correct javascript
Download node at nodejs.org and install it, if you haven't already.
``sh`
npm install validate-inline-js --save
`js
var validate = require("validate-inline-js");
// will be an error if the inline js has syntax errors
var error = validate('