Codebase list node-strip-indent / debian/3.0.0+_1.0.1-2 index.d.ts
debian/3.0.0+_1.0.1-2

Tree @debian/3.0.0+_1.0.1-2 (Download .tar.gz)

index.d.ts @debian/3.0.0+_1.0.1-2raw · history · blame

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

@example
```
import stripIndent = require('strip-indent');

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

stripIndent(string);
//unicorn
//	cake
```
*/
declare function stripIndent(string: string): string;

export = stripIndent;