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 each 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 const stripIndent = require('strip-indent');
22 const str = '\tunicorn\n\t\tcake';
28 stripIndent('\tunicorn\n\t\tcake');
38 - [strip-indent-cli](https://github.com/sindresorhus/strip-indent-cli) - CLI for this module
39 - [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string
44 MIT © [Sindre Sorhus](https://sindresorhus.com)