Width Text
🚀 A small utility to measure the width of the text or string in browsers that support the canvas API. 🐋
Installation
// Using Npmnpm i width-text // Using Yarnyarn add width-text
Usage
For Typescript
WidthText'string'// Return: 24.453125
For Javascript or Nodejs
WidthText'string'// Return: 24.453125