Fitter
Simple text fitting, supports shadow DOM
Install:
npm i fitter-js
Basic usage:
min: 12 // px max: 32 // px element: '.js-fitter' // selector string or node;
With shadow DOM:
let fitter = shadowRoot: yourShadowRoot;
Update:
fitter;
Set:
fitter;