Remove n lines from the beginning of a string
Strip leading whitespace from each line in a string
Strip ANSI escape codes from a string
Strip UTF-8 byte order mark (BOM) from a string
Strip comments from JSON. Lets you use comments in your JSON files!
Indent each line in a string
Strip redundant indentation and indent the string
Strip flow type annotations from your output code.
Strip comments and string literals from JavaScript code
Strip the final newline character from a string or Uint8Array
Strip a byte order mark (BOM) from a string.
Strip a substring from the start/end of a string
Remove leading directory components from a path, like tar's --strip-components option
Strip console, alert, and debugger statements from JavaScript code
Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.
Strip UTF-8 byte order mark (BOM) from a stream
Strip comments from a Pug token stream (from the lexer)
Strip UTF-8 byte order mark (BOM) from a Uint8Array
Strip comments from code
A simple method that will strip a valid hex prefix off a string, if present.
Check if a string has ANSI escape codes
Maps lines and columns to character offsets and back.
Strip HTML tags from strings. No parser, accepts mixed sources.
remark plugin to remove markdown formatting
Strips out un-nescessary lines from verbose Sauce Connect logs.
This gem adds a dedent method to strings to strip leading spaces from each line while preserving indentation.
A function that splits a string into an Array of stripped, non-empty lines: Strip_Lines(" test \n \n test ")
This gem adds a dedent method to strings to strip leading spaces from each line while preserving indentation.
This gem adds a dedent method to strings to strip leading spaces from each line while preserving indentation.
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.
EasyCols is a flexible command-line utility for extracting specific columns from structured text data in various formats (CSV, TSV, table, plain text). It supports sophisticated parsing options including quote handling, comment stripping, header processing, and language-specific comment patterns. It can be used on both files and STDIN.
Remote syslog appender for Logging
Diff and patch tables
Diff and patch tables