1.0.3 • Published 12 months ago

fsck-spaces v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

fsck-spaces

fsck spaces is a tool for finding and fixing a common error found in programming source code: The use of spaces for indentation.

These errors are found and recursively replaced with the correct usage of tabs.

By default, the following list of file extensions will be fixed: js, ts, jsx, tsx, cjs, mjs, json, html, css, as the scourge appears to most prevalently afflict those files used by web developers.

To add to this list you can call fsck-spaces --more=cpp,h,whatever

Installation

npm install -g fsck-spaces

Usage

CommandDescription
fsck-spacesRecurse and replace in the current directory.
fsck-spaces ./some-pathRun at some other path.
fsck-spaces --more=other,file,extensionsAdd to the built in list.
fsck-spaces --no=some_dir,other_dirExclude some directories. node_modules is excluded by default.
fsck-spaces --dry-run😳️ just list the files which would be modified.
1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago