can-run-javascript

1.0.1 • Public • Published

Check whether you can run javascript with this script.

const canRunJavascript = require("./can-run-javascript");
if (canRunJavascript()) {
    // your computer can run javascript
    console.log("It works!");
}
else {
    // your computer cannot run javascript
    // or your javascript installation is corrupted
    console.log("Your computer does not seem to support javascript." +
                "Please install/reinstall javascript");
}

Readme

Keywords

Package Sidebar

Install

npm i can-run-javascript

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.57 kB

Total Files

5

Last publish

Collaborators

  • james10424