# @types/jquery-truncate-html

> TypeScript definitions for jquery-truncate-html

Latest version **0.0.12** (published 2024-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jquery-truncate-html
pnpm add @types/jquery-truncate-html
yarn add @types/jquery-truncate-html
bun add @types/jquery-truncate-html
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.12 |
| Published | 2024-01-30 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jquery-truncate-html
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-truncate-html
- npm.io page: https://npm.io/package/@types/jquery-truncate-html

## Dependencies (1)

- [@types/jquery](https://npm.io/package/@types/jquery.md) *

## Recent versions

- 0.0.12 (latest) — 2024-01-30
- 0.0.11 (ts4.5) — 2023-11-07
- 0.0.8 (ts3.6) — 2021-07-09
- 0.0.6 (ts2.3) — 2017-06-15
- 0.0.5 (ts2.0) — 2016-11-21
- 0.0.10 — 2023-10-18
- 0.0.9 — 2023-09-15
- 0.0.7 — 2021-07-08
- 0.0.4 — 2016-09-19
- 0.0.3 — 2016-08-25
- 0.0.2 — 2016-08-19
- 0.0.1 — 2016-08-02

## README

# Installation
> `npm install --save @types/jquery-truncate-html`

# Summary
This package contains type definitions for jquery-truncate-html (https://github.com/kbwood/timeentry).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-truncate-html.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery-truncate-html/index.d.ts)
````ts
/// <reference types="jquery"/>

interface TruncateOptions {
    length?: number | undefined;
    stripTags?: boolean | undefined;
    words?: boolean | undefined;
    noBreaks?: boolean | undefined;
    ellipsis?: string | undefined;
}

interface JQuery {
    truncate(options: TruncateOptions): JQuery;
}

interface JQueryStatic {
    truncate(html: string, options: TruncateOptions): string;
}

````

### Additional Details
 * Last updated: Tue, 30 Jan 2024 21:35:45 GMT
 * Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery)

# Credits
These definitions were written by [Abraão Alves](https://github.com/abraaoalves).

---
_Source: https://npm.io/package/@types/jquery-truncate-html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
