1.0.0 • Published 2 years ago

reverse-indent v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Reverse Indent

A simple command-line app that reverses the indentation of code file(s), inspired by this post on r/ProgrammerHumor. This has no useful purpose other than annoying/scaring your collaborators.

Installation

Assuming npm is installed on the machine

npm install -g reverse-indent

Usage

reverse-indent can be used on a single file or on all files in a folder

reverse-indent path/to/file_or_folder

By default, all files will be changed. If you want to specify the extensions of the files you want to edit, then use the types option

reverse-indent path/to/file_or_folder --types ".c" ".js"

If you want to undo the changes reverse-indent makes, just run it again: the reverse of the reverse should give you the original.

Please don't try this on any important code. It has not been rigorously tested 😄