CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
index.d.ts42 linesDownload Raw Back to strip-indent
1/**2Strip leading whitespace from each line in a string.3 4The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.5 6@example7```8import stripIndent from 'strip-indent';9 10const string = '\tunicorn\n\t\tcake';11//	unicorn12//		cake13 14stripIndent(string);15//unicorn16//	cake17```18*/19export default function stripIndent(string: string): string;20 21/**22Strip leading whitespace from each line in a string and remove surrounding blank lines.23 24The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.25Leading and trailing lines that contain only whitespace are removed.26 27Useful for template literals and multi-line strings where you want clean boundaries.28 29@example30```31import {dedent} from 'strip-indent';32 33dedent(`34	unicorn35		cake36`);37//unicorn38//	cake39```40*/41export function dedent(string: string): string;42 
basant307/AI_Governance_Project · CoolFace