glam/node_modules/.pnpm/strip-indent@3.0.0/node_modules/strip-indent
2025-12-21 00:01:54 +01:00
..
index.d.ts remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
index.js remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
license remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
package.json remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00
readme.md remove a,bihguous web-claims 2025-12-21 00:01:54 +01:00

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
*/

License

MIT © Sindre Sorhus