1 # strip-indent [![Build Status](https://travis-ci.org/sindresorhus/strip-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-indent)
3 > Strip leading whitespace from every line in a string
5 The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
7 Useful for removing redundant indentation.
13 $ npm install --save strip-indent
20 var str = '\tunicorn\n\t\tcake';
26 stripIndent('\tunicorn\n\t\tcake');
37 $ npm install --global strip-indent
45 echo <string> | strip-indent
48 echo '\tunicorn\n\t\tcake' | strip-indent
56 - [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string
61 MIT © [Sindre Sorhus](http://sindresorhus.com)