Codebase list node-strip-indent / run/a83faa62-453a-4228-b021-4542cbee3180/main index.d.ts
run/a83faa62-453a-4228-b021-4542cbee3180/main

Tree @run/a83faa62-453a-4228-b021-4542cbee3180/main (Download .tar.gz)

index.d.ts @run/a83faa62-453a-4228-b021-4542cbee3180/mainraw · 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;