unindenter

4.0.0 • Public • Published

unindenter

GratiPay Build Status Coverage Downloads Version

Unindents a block of text by the lowest common indent amount. This is useful when you want to remove extra indentantion on a code block.

Installation

npm install unindenter

Usage Example

var unindenter = require('unindenter');
unindenter.unindent('\t\tline 1\n\t\tline 2\n\t\t\tline 3');
 
line 1
line 2
    line 3

Testing

npm test

License

GPL & MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    74
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    74
  • 0.5.1
    4
  • 0.5.0
    4

Package Sidebar

Install

npm i unindenter

Weekly Downloads

82

Version

4.0.0

License

none

Last publish

Collaborators

  • alexgorbatchev