sindresorhus / strip-indentView external linksLinks
Strip leading whitespace from each line in a string
☆145Oct 12, 2025Updated 4 months ago
Alternatives and similar repositories for strip-indent
Users that are interested in strip-indent are comparing it to the libraries listed below
Sorting:
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Indent each line in a string☆115Jun 5, 2022Updated 3 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 5 months ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Trim newlines from the start and/or end of a string☆49Mar 20, 2023Updated 2 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 2 weeks ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 2 weeks ago
- Iterator abstraction as specified in ECMAScript6☆19Jun 30, 2021Updated 4 years ago
- Check if an object can be used like an Array☆17Sep 13, 2025Updated 5 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Ensure a function is only called once☆165Feb 2, 2026Updated 2 weeks ago
- The map of HTTP status codes from the builtin http module☆19Apr 21, 2022Updated 3 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- A transform to make UglifyJS work in browserify☆21Feb 18, 2020Updated 5 years ago
- Node.js path.dirname() ponyfill☆13Nov 13, 2021Updated 4 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆47Apr 9, 2021Updated 4 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 5 months ago
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆20Jul 9, 2022Updated 3 years ago
- Get the length of the longest item in an array.☆29Apr 4, 2018Updated 7 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆77Feb 3, 2026Updated last week
- Read the closest package.json file☆268Nov 7, 2025Updated 3 months ago
- Get the set npm registry URL☆57Apr 15, 2025Updated 10 months ago
- Create an array by repeating the given string n times.☆19Apr 7, 2021Updated 4 years ago