@plexis/without-indent

Removes leading whitespaces from each line in a string

Usage no npm install needed!

<script type="module">
  import plexisWithoutIndent from 'https://cdn.skypack.dev/@plexis/without-indent';
</script>

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';