index.d.ts 410 B

123456789101112131415161718192021
  1. /**
  2. Strip leading whitespace from each line in a string.
  3. The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
  4. @example
  5. ```
  6. import stripIndent = require('strip-indent');
  7. const string = '\tunicorn\n\t\tcake';
  8. // unicorn
  9. // cake
  10. stripIndent(string);
  11. //unicorn
  12. // cake
  13. ```
  14. */
  15. declare function stripIndent(string: string): string;
  16. export = stripIndent;