JSPM

is-require-working

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q12594F
  • License GPL-2.0-only

Check if node's require() is working!

Package Exports

  • is-require-working

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-require-working) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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 :^)