@protobufjs/inquire

Requires a module only if available and hides the require call from bundlers.

Usage no npm install needed!

<script type="module">
  import protobufjsInquire from 'https://cdn.skypack.dev/@protobufjs/inquire';
</script>

README

@protobufjs/inquire

npm

Requires a module only if available and hides the require call from bundlers.

API

  • inquire(moduleName: string): ?Object
    Requires a module only if available.

License: BSD 3-Clause License