@plexis/without-indent
v0.0.22
Published
Removes leading whitespaces from each line in a string
Downloads
11
Maintainers
Readme
withoutIndent
Removes leading whitespaces from each line in a string
npm i @plexis/without-indent
Usage
import withoutIndent from '@plexis/without-indent';
withoutIndent('\t\t\tHello World'); // returns 'Hello World'
withoutIndent('\n\tHello\n\tWorld'); // returns '\nHello\nWorld'
Aliases
import {removeIndent} from 'plexis';
import {dedent} from 'plexis';