indent-string
Indent tool
A utility function to insert consistent indentation into a string
Indent each line in a string
112 stars
7 watching
17 forks
Language: JavaScript
last commit: over 2 years ago
Linked from 2 awesome lists
Related projects:
Repository | Description | Stars |
---|---|---|
sindresorhus/indent-string-cli | A command-line tool for indenting lines of text | 5 |
sindresorhus/strip-indent | Removes redundant indentation from a string by finding the minimum leading whitespace across all lines. | 135 |
sindresorhus/detect-indent | A tool to automatically detect and apply consistent indentation in text files. | 196 |
sindresorhus/matcher | A utility for simple string matching with wildcard patterns | 537 |
sindresorhus/pad-stream | Transforms input streams by padding each line with a specified indent | 11 |
sindresorhus/filled-array | Creates an array of specified length filled with a given value or function returning values | 43 |
sindresorhus/splice-string | A utility function to remove or replace parts of a string | 23 |
sindresorhus/round-to | A utility library for rounding numbers to specific decimal places | 155 |
sindresorhus/hash-object | A library that generates a unique digital fingerprint of an object | 134 |
sindresorhus/math-clamp | A utility function to limit a value within a specified range | 14 |
sindresorhus/escape-string-regexp | Escapes special characters in regular expressions to ensure safe string insertion | 582 |
sindresorhus/hook-std | A library to capture and modify output from the standard streams in Node.js applications. | 54 |
sindresorhus/string-length | Corrects string length counting by ignoring astral symbols and ANSI escape codes. | 162 |
sindresorhus/string-width | Calculates the visual width of a string based on its Unicode characters and formatting options | 479 |
sindresorhus/dot-prop | A library to access properties within nested objects using a dot notation | 817 |