fast-string-truncated-width
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
$
npm install fast-string-truncated-widthOfficial docs outline
Extra Credit builds an outline of fast-string-truncated-width's docs the first time your work uses it. Until then, start at the official documentation.
More in npm packages
All 9,484-
fast-wrap-ansi A tiny and fast text wrap library which takes ANSI escapes into account.
-
@babel/plugin-transform-async-generator-functions Turn async generator functions into ES2015 generators
-
@aws-sdk/util-user-agent-browser [](https://www.npmjs.com/package/@aws-sdk/util-user-
-
listr2 Terminal task list reborn! Create beautiful CLI interfaces via easy and logical to implement task lists that feel alive and interactive.
-
@radix-ui/react-menubar
-
yn Parse yes/no like values
-
cookie-es <!-- automd:badges bundlejs packagephobia codecov -->
-
spdx-exceptions list of SPDX standard license exceptions
-
glob-to-regexp Convert globs to regular expressions
-
recast JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator
-
@aws-sdk/middleware-user-agent [](https://www.npmjs.com/package/@aws-sdk/middleware-u
-
mdast-util-mdxjs-esm mdast extension to parse and serialize MDX.js ESM (import/exports)