mk-pmb

mk-pmb/ersatz-ellip-js

An ellipsis function that's usually good enough. Works with strings, arrays and similar.

JavaScript
0
0
No license

ersatz‑ellip is a tiny utility that truncates any sequence‑like value (strings, arrays, etc.) to a maximum length, inserting an ellipsis (or a custom gap) in the middle. It’s aimed at developers who need a simple, generic “preview” or shortened representation of data without pulling in larger formatting libraries.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mk-pmb/ersatz-ellip-js

Account's avatar
Expect two values to be equal, for whatever latest notion of equality.
Account's avatar
Run .mjs files from your command line, with all the tweaks from esmod-pmb.
Account's avatar
Re-throw unhandled promise rejections in the next turn, so other listeners get a chance to also run.
Account's avatar
Concise stack traces for node: pretty-error + compact theme (still with paths) + auto-start.

Support the repos that depend on this repository

Top contributors

mk-pmb's profile
mk-pmb
4 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet