jshint/fixmyjs

CLi option to output to a different file

Opened this issue · 3 comments

When used from command line, fixmyjs always works in-place, overwriting the file passed to. While it's arguable if that's the right approach, how about just adding a flag like -o to specify the output file, something that tools like js-beautify do?

Sure, I'd merge a PR like that :)

You'd have to keep in mind that fixmyjs operates on files as well as directories and I believe it's recursive by default.

I hope this contribution is good enough… #120

this should probably operate on directories since that's how the cli currently works, it should use something like mkdirp to create directories if they don't exist.