debug-browser
v0.1.1
Published
Directly import the 'debug' library into the browser.
Downloads
2
Readme
debug-browser
Just a wrapper around debug to allow directly importing the library into the browser without having to bundle it.
Usage
Import as script
<script src="https://unpkg.com/debug-browser/dist/index.js"></script>
<script>
let log = debug('namespaceName');
log('Hi!')
</script>
Import as module
import debug from 'https://unpkg.com/debug-browser/dist/index.esm.js';
let log = debug('namespaceName');
log('Hi!')