Strip leading whitespace from each line in a string
☆151Sep 18, 2026Updated last month
Alternatives and similar repositories for strip-indent
Users that are interested in strip-indent are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Strip redundant indentation and indent the string☆56Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- Check if an object can be used like an Array☆17Sep 13, 2025Updated last year
- Indent each line in a string☆116Sep 18, 2026Updated last month
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated 2 years ago
- DES for browserify☆10Dec 21, 2024Updated last year
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated last month
- Trim newlines from the start and/or end of a string☆49Sep 18, 2026Updated last month
- Check if a path is inside another path☆40Sep 18, 2026Updated last month
- Check if a path is a file, directory, or symlink☆81Sep 18, 2026Updated last month
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆21Sep 18, 2026Updated last month
- Repeat a string - fast☆35Sep 18, 2026Updated last month
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last month
- ES2015 `Array#findIndex()` ponyfill☆33Sep 18, 2026Updated last month
- Check if a file path is a binary file☆49Sep 18, 2026Updated last month
- Returns `true` if a file path appears to be relative. Moved from the "relative" lib.☆14May 6, 2018Updated 8 years ago
- PostCSS helpers to throw or output GNU style messages☆10Jul 2, 2024Updated 2 years ago
- Get the PATH environment variable key cross-platform☆46Sep 18, 2026Updated last month
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Get the length of the longest item in an array.☆30Apr 4, 2018Updated 8 years ago
- Check if a string matches the name of a Node.js builtin module☆63Sep 18, 2026Updated last month
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated last month
- Strip a substring from the start/end of a string☆23Sep 18, 2026Updated last month
- Check if a given module ID is resolvable with require()☆16Nov 30, 2018Updated 7 years ago
- Returns true if a string has an extglob☆23May 25, 2019Updated 7 years ago
- Get the user home directory with fallback to the system temp directory☆30Sep 18, 2026Updated last month
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Center-align the text in a string.☆23May 26, 2017Updated 9 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- The map of HTTP status codes from the builtin http module☆19Apr 21, 2022Updated 4 years ago
- Iterator abstraction as specified in ECMAScript6☆19Jun 30, 2021Updated 5 years ago
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated last month
- Lowercase the keys of an object☆42Sep 18, 2026Updated last month
- ☆19Dec 21, 2024Updated last year
- Returns true if a filepath is absolute. The original path-is-absolute.☆22Jul 13, 2017Updated 9 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month