file-linter
v0.2.1
Published
Regex File Linter
Readme
File Linter
Linter that helps keep Files consistent via Regex
Help
Run this command for options:
file-linter --helpAvailable options:
--help Show help [boolean]
--version Show version number [boolean]
--recursive, -r Recursively search for files [boolean] [default: false]
--fix, -f Fix failing files [boolean] [default: false]
--debug, -d Display JSON objects [boolean] [default: false]
--silent, -s Hide all output [boolean] [default: false]
--watch, -w Watch files for change [boolean] [default: false]Usage
Installation
Module:
npm i file-linterGlobal:
npm i -g file-linterOnce-off:
npx file-linterExample
Usage as a module:
const fileLinter = require("file-linter");
console.log({ fileLinter });
const lintedDirectories = fileLinter.lintDirectories();
console.log({ lintedDirectories });For the brave
Hot recursive fix watch:
npx file-linter -rfw
