redent
Advanced tools
Strip redundant indentation and indent the string
Weekly downloads
Changelog
https://github.com/sindresorhus/redent/compare/v3.0.0...v4.0.0
Readme
$ npm install redent
import redent from 'redent';
redent('\n foo\n bar\n', 1);
//=> '\n foo\n bar\n'
Type: string
The string to normalize indentation.
Type: number
Default: 0
How many times you want options.indent
repeated.
Type: object
Type: string
Default: ' '
The string to use for the indent.
Type: boolean
Default: false
Also indent empty lines.
Strip redundant indentation and indent the string
The npm package redent receives a total of 14,625,432 weekly downloads. As such, redent popularity was classified as popular.
We found that redent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.