You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrea Gaertner 668e16c315 Einkaufsliste application_liste hinzugefügt 3 years ago
..
cli.js Einkaufsliste application_liste hinzugefügt 3 years ago
index.js Einkaufsliste application_liste hinzugefügt 3 years ago
license Einkaufsliste application_liste hinzugefügt 3 years ago
package.json Einkaufsliste application_liste hinzugefügt 3 years ago
readme.md Einkaufsliste application_liste hinzugefügt 3 years ago

readme.md

strip-indent Build Status

Strip leading whitespace from every line in a string

The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.

Useful for removing redundant indentation.

Install

$ npm install --save strip-indent

Usage

var str = '\tunicorn\n\t\tcake';
/*
	unicorn
		cake
*/

stripIndent('\tunicorn\n\t\tcake');
/*
unicorn
	cake
*/

CLI

$ npm install --global strip-indent
$ strip-indent --help

  Usage
    strip-indent <file>
    echo <string> | strip-indent

  Example
    echo '\tunicorn\n\t\tcake' | strip-indent
    unicorn
    	cake

License

MIT © Sindre Sorhus