1.0.0 ā¢ Published 4 years ago
width-text v1.0.0
Width Text
š A small utility to measure the width of the text or string in browsers that support the canvas API. š
Installation
// Using Npm
npm i width-text
// Using Yarn
yarn add width-text
Usage
For Typescript
import WidthText from 'width-text'
WidthText('string') // Return: 24.453125
> For Javascript or Nodejs
```ts
const WidthText = require('width-text')
WidthText('string')
// Return: 24.453125
1.0.0
4 years ago