is-require-working

Check if node's require() is working!

Usage no npm install needed!

<script type="module">
  import isRequireWorking from 'https://cdn.skypack.dev/is-require-working';
</script>

README

is-require-working

Check if require() works.

Usage

let doesItWork;
try {
  doesItWork = require("is-require-working");
}
catch(e) {
  //o shit
}
console.log(doesItWork); //will be a string if it works

Common questions

  • Should I shoot myself?
    • Yes, DO IT NOW

License

GPLv2 because fuck you :^)