strip-indent
Indent remover
Removes redundant indentation from a string by finding the minimum leading whitespace across all lines.
Strip leading whitespace from each line in a string
136 stars
8 watching
18 forks
Language: JavaScript
last commit: over 3 years ago
Linked from 1 awesome list
Related projects:
Repository | Description | Stars |
---|---|---|
| A command-line tool for indenting lines of text | 5 |
| A utility function to insert consistent indentation into a string | 112 |
| Removes the UTF-8 byte order mark from strings | 111 |
| A command-line tool to remove comments from CSS files | 38 |
| A tool to automatically detect and apply consistent indentation in text files. | 196 |
| A utility that removes comments from CSS code while preserving certain comment patterns or functions. | 121 |
| Removes comments from JSON data to enable use of comments in JSON files | 67 |
| Removes console statements from JavaScript code to strip debugging information | 251 |
| Removes comments from JSON data to allow its safe use in production environments. | 600 |
| Transforms input streams by padding each line with a specified indent | 11 |
| Corrects string length counting by ignoring astral symbols and ANSI escape codes. | 163 |
| Library to truncate strings to fit terminal widths | 86 |
| Deletes files and directories using glob patterns with support for promises, multiple files, and protection against deleting the current working directory. | 1,327 |
| A utility function to remove or replace parts of a string | 23 |
| Removes unwanted formatting codes from text | 402 |