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
135 stars
8 watching
18 forks
Language: JavaScript
last commit: about 3 years ago
Linked from 1 awesome list
Related projects:
Repository | Description | Stars |
---|---|---|
sindresorhus/indent-string-cli | A command-line tool for indenting lines of text | 5 |
sindresorhus/indent-string | A utility function to insert consistent indentation into a string | 112 |
sindresorhus/strip-bom | Removes the UTF-8 byte order mark from strings | 111 |
sindresorhus/strip-css-comments-cli | A command-line tool to remove comments from CSS files | 38 |
sindresorhus/detect-indent | A tool to automatically detect and apply consistent indentation in text files. | 196 |
sindresorhus/strip-css-comments | A utility that removes comments from CSS code while preserving certain comment patterns or functions. | 121 |
sindresorhus/strip-json-comments-cli | Removes comments from JSON data to enable use of comments in JSON files | 67 |
sindresorhus/gulp-strip-debug | Removes console statements from JavaScript code to strip debugging information | 251 |
sindresorhus/strip-json-comments | Removes comments from JSON data to allow its safe use in production environments. | 599 |
sindresorhus/pad-stream | Transforms input streams by padding each line with a specified indent | 11 |
sindresorhus/string-length | Corrects string length counting by ignoring astral symbols and ANSI escape codes. | 162 |
sindresorhus/cli-truncate | Library to truncate strings to fit terminal widths | 86 |
sindresorhus/del | Deletes files and directories using glob patterns with support for promises, multiple files, and protection against deleting the current working directory. | 1,326 |
sindresorhus/splice-string | A utility function to remove or replace parts of a string | 23 |
chalk/strip-ansi | Removes unwanted formatting codes from text | 400 |