https://github.com/afeiship/is-overflowed
Detect element text overflowed.
https://github.com/afeiship/is-overflowed
detect ellipsis overflow text text-overflow
Last synced: about 1 year ago
JSON representation
Detect element text overflowed.
- Host: GitHub
- URL: https://github.com/afeiship/is-overflowed
- Owner: afeiship
- License: mit
- Created: 2019-04-02T07:35:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T15:43:52.000Z (about 2 years ago)
- Last Synced: 2025-02-07T11:11:09.115Z (over 1 year ago)
- Topics: detect, ellipsis, overflow, text, text-overflow
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# is-overflowed
> Detect element text overflowed.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
npm install @jswork/is-overflowed
```
## usage
```js
import isOverflowed from '@jswork/is-overflowed';
const el = document.getElementById('my-element');
const isOverflowed = isOverflowed(el);
console.log(isOverflowed); // true or false
```
## types
```ts
///
```
## license
Code released under [the MIT license](https://github.com/afeiship/is-overflowed/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/is-overflowed
[version-url]: https://npmjs.org/package/@jswork/is-overflowed
[license-image]: https://img.shields.io/npm/l/@jswork/is-overflowed
[license-url]: https://github.com/afeiship/is-overflowed/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/is-overflowed
[size-url]: https://github.com/afeiship/is-overflowed/blob/master/dist/index.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/is-overflowed
[download-url]: https://www.npmjs.com/package/@jswork/is-overflowed