Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLi option to output to a different file #119

Open
mcdado opened this issue Oct 29, 2014 · 3 comments
Open

CLi option to output to a different file #119

mcdado opened this issue Oct 29, 2014 · 3 comments

Comments

@mcdado
Copy link

mcdado commented Oct 29, 2014

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?

@goatslacker
Copy link
Member

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.

@mcdado
Copy link
Author

mcdado commented Nov 2, 2014

I hope this contribution is good enough… #120

@goatslacker
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants