Skip to content

afeiship/is-overflowed

Repository files navigation

is-overflowed

Detect element text overflowed.

version license size download

installation

npm install @jswork/is-overflowed

usage

import isOverflowed from '@jswork/is-overflowed';

const el = document.getElementById('my-element');
const isOverflowed = isOverflowed(el);
console.log(isOverflowed); // true or false

types

/// <reference types="@jswork/is-overflowed/global.d.ts" />

license

Code released under the MIT license.