@uppercod/normalize-indentation
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

normalize-indentation

Normalize start-of-line spaces by reducing values to eliminate additional indentation.

Install

npm install @uppercod/normalize-indentation

Usage

import normalizeIndentation from "@uppercod/normalize-indentation";

normalizeIndentation(`
    line 1
        line 1.1
        line 1.2
    line 2
        line 2.1        
`);

The script will remove the original indentation and adjust the swapping of tab and space for spaces

Readme

Keywords

none

Package Sidebar

Install

npm i @uppercod/normalize-indentation

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

10.3 kB

Total Files

9

Last publish

Collaborators

  • uppercod