@plexis/without-indent

0.0.22 • Public • Published

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

Package Sidebar

Install

npm i @plexis/without-indent

Weekly Downloads

0

Version

0.0.22

License

MIT

Unpacked Size

4.33 kB

Total Files

6

Last publish

Collaborators

  • vorillaz