thejameskyle

thejameskyle/min-indent

Get the shortest leading whitespace from lines in a string

JavaScript
19
4
MIT License

Min-indent is a small JavaScript utility that calculates the minimum amount of leading whitespace in a multi-line string, excluding empty lines. It's designed for developers working with code or text manipulation, particularly those needing to normalize indentation in templates, docstrings, or formatted output.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of thejameskyle/min-indent

Account's avatar
Node.js test runner that lets you develop with confidence.

Support the repos that depend on this repository

Top contributors

jamiebuilds's profile
jamiebuilds
5 contributions
fregante's profile
fregante
1 contributions
ooflorent's profile
ooflorent
1 contributions
nathancahill's profile
nathancahill
1 contributions

Recent events

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

No events yet