@lyo/badgen
A browser-compatible version of badgen built automatically with Lyo.
Usage
In a browser
<script src="https://cdn.jsdelivr.net/npm/@lyo/badgen"></script>
<script>
badgen.badgen(foo);
badgen.calcWidth(foo);
</script>
In Node.js
# Install
npm i @lyo/badgen
const badgen = require('@lyo/badgen')
badgen.badgen(foo);
badgen.calcWidth(foo);
Disclaimer
This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.
Use at your own risk