Remove JavaScript statements (like console.log) from your source code
Remove dev and test only code in production builds
Strip comments from JSON. Lets you use comments in your JSON files!
Strip comments from CSS
Strip ANSI escape codes from a string
Strip UTF-8 byte order mark (BOM) from a string
Strip JavaScript nodes (like console.* or if(...) ) out of your source code
Strip leading whitespace from each line in a string
Strip flow type annotations from your output code.
Strip comments and string literals from JavaScript code
Strip comments from JSON. Lets you use comments in your JSON files!
Strip the final newline character from a string or Uint8Array
Strip comments from CSS
Concatenate files.
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 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
A simple method that will strip a valid hex prefix off a string, if present.
Check if a string has ANSI escape codes
Strip console and debugger statements from JavaScript code