Indent each line in a string
Socket.dev optimized package override for indent-string
Indent each line in a string. This is a fork of sindresorhus/indent-string, but with CommonJS support.
Strip leading whitespace from each line in a string
Strip redundant indentation and indent the string
Detect the indentation of code
Get the shortest leading whitespace from lines in a string
Indent string with indent-string.
JSON.parse with context information on error
Detect the dominant newline character of a string
Left pad a string to align with the longest string in an array
Indent string with indent-string.
Repeat a string - fast
Like read-package-json, but faster
Detect the indentation of code (commonjs fork)
Pad each line in a stream
Indent each line in a string
Stringify and write JSON to a file atomically
Guess the indentation of a JSON string
The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.
helpers for rocambole AST indentation
Indent each line in a string
Indents a string.
No description provided.
String#indent
A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.
This gem removes common margin from indented strings, such as the ones produced by indented heredocs. In other words, it strips out leading whitespace chars at the beggining of each line, but only as much as the line with the smallest margin. It is acknowledged that many strings defined by heredocs are just code and fact is that most parsers are insensitive to indentation. If, however, the strings are to be used otherwise, be it for printing or testing, the extra indentation will probably be an issue and hence this gem.
Ruby method to unindent strings. Useful for multiline strings embeded in already indented code.
Parse multi-line string with indentation, return a structure where nesting is based on line indentation
Sane indent-aware multiline strings
Wrap text to a specific width at word boundaries. Supports indentation, hanging indent, ANSI escape code-safe width calculation, and truncation with configurable omission strings.
This gem adds a dedent method to strings to strip leading spaces from each line while preserving indentation.
String case conversion, slug generation, transliteration, padding, HTML stripping, whitespace normalization, word counting, reading time estimation, excerpt extraction, indentation, and more.
Ruby method to unindent strings. Useful for multiline strings embeded in already indented code.
Builds a dependency tree (inside out) from clusters of dependencies (outside in) in a string format with indented (2 spaces) branches.
This gem adds a dedent method to strings to strip leading spaces from each line while preserving indentation.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.