max_liu b7ab7c8514 chore: 更新node_modules依赖文件 vor 2 Wochen
..
index.d.ts b7ab7c8514 chore: 更新node_modules依赖文件 vor 2 Wochen
index.js b7ab7c8514 chore: 更新node_modules依赖文件 vor 2 Wochen
license b7ab7c8514 chore: 更新node_modules依赖文件 vor 2 Wochen
package.json b7ab7c8514 chore: 更新node_modules依赖文件 vor 2 Wochen
readme.md b7ab7c8514 chore: 更新node_modules依赖文件 vor 2 Wochen

readme.md

strip-indent Build Status

Strip leading whitespace from each 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 strip-indent

Usage

const stripIndent = require('strip-indent');

const string = '\tunicorn\n\t\tcake';
/*
	unicorn
		cake
*/

stripIndent(string);
/*
unicorn
	cake
*/

Related

License

MIT © Sindre Sorhus