LimePot
76722fec47
Going to slowly work on a Bulma site, which will end up being the main site. Currently under the /BETA/ folder so Alpha site will still be main site.
21 lines
410 B
TypeScript
21 lines
410 B
TypeScript
/**
|
|
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;
|