duoify

Modify Browserify bundles to be compatible with Duo

Usage no npm install needed!

<script type="module">
  import duoify from 'https://cdn.skypack.dev/duoify';
</script>

README

Duoify

version js-standard-style

Allows Browserify bundles to be used by Duo by rewriting the require statements. This is useful when you have a module that is written using modules from npm and you want your package to be consumed by both npm and Duo.

npm install duoify

Usage

browserify index.js -t duoify > build.js

You'll probably need to add a component.json file to your project so that Duo loads the correct file.

{
    "name": "my-module",
    "main": "build.js"
}