Search results

298 packages found

Truncate a string to a specific width in the terminal

published version 4.0.0, 2 years ago406 dependents licensed under $MIT
100,714,204

The lodash method `_.truncate` exported as a module.

published version 4.4.2, 9 years ago293 dependents licensed under $MIT
40,565,965

Truncate a semver version: `1.2.3` → `1.2.0`

published version 3.0.0, 4 years ago20 dependents licensed under $MIT
10,599,688

Truncate string to given length in bytes

published version 1.0.2, 9 years ago52 dependents licensed under $WTFPL
9,537,897

Keeps track of a server's open sockets so they can be destroyed at a moment's notice.

published version 1.0.1, 7 years ago197 dependents licensed under $ISC
9,654,774

turf truncate module

published version 7.2.0, 4 months ago25 dependents licensed under $MIT
2,760,920

Unicode aware string truncation that given a max byte size will truncate the string to or just below that size

published version 1.0.0, 9 years ago19 dependents licensed under $MIT
1,196,484

Zero-dependency unicode-aware string tools

published version 2.1.0, 5 years ago51 dependents licensed under $MIT
1,598,305

Round a double-precision floating-point number toward zero.

published version 0.2.2, 10 months ago16 dependents licensed under $Apache-2.0
441,659

truncates a log file

published version 1.0.2, 7 years ago9 dependents licensed under $ISC
570,324

React component for truncating multi-line spans and adding an ellipsis

published version 2.4.0, 7 years ago165 dependents licensed under $ISC
389,560

Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.

published version 0.0.8, 6 years ago14 dependents licensed under $MIT
263,434

Ellipsizes a string at the nearest whitespace character near the end of allowed length

published version 0.5.1, 3 years ago76 dependents licensed under $MIT
338,077

React component for truncating JSX markup

published version 5.1.2, 3 years ago47 dependents licensed under $Apache-2.0
244,562

The ultimate JavaScript string library

published version 1.4.1, 2 years ago242 dependents licensed under $MIT
375,303

A tiny function for truncating a string that may contain ANSI escape sequences.

published version 1.2.0, 4 months ago1 dependents licensed under $MIT
175,418

Truncate text for React.js

published version 0.19.0, 3 years ago101 dependents licensed under $MIT
206,480

Truncate HTML and Keep Tags

published version 1.2.1, 2 months ago66 dependents licensed under $MIT
205,249

Fix up the end of a partial JSON string to create valid JSON.

published version 0.0.1, 6 years ago16 dependents licensed under $MIT
96,651

Fast and correct clip functions for HTML and plain text.

published version 2.2.0, 3 years ago21 dependents licensed under $MIT
74,779