Command line tool for repacing all double quoted strings with single quoted strings in a file or directory. Usage: jsq fileOrDirectory [fileOrDirectory [..]]
npm install jsq -g
jsq fileOrDirectory [fileOrDirectory [...]] [-v]
-v will give you verbose output.
A file containing the code:
var y = "hello";return "hello\" I am a string's for sure";
Will contain this, after
jsq is run on it:
var y = 'hello';return 'hello" I am a string\'s for sure';
TLDR; No don't worry. Files are just skipped.
When in verbose mode
jsq prints an error for one of two reasons:
- There is a bug in
jsq is just letting you know that some files are beeing skipped.
Then we decided that our coding-standard should be single-quotes JavaSctipt strings, but the codebase was a mix.
jsq I was able to clean up the entire project in a jiff.