简体   繁体   中英

Get jshint errors in a text file

I am using jshint for my code analysis. I run jshint PATH_TO_.js . Is there a way to print these errors into a text file.

If you are running this from a terminal you can use the > character to output to file.

jshint PATH_TO_.js > path/to/text/file.txt

The above truncates the file prior to writing, if you want a continuous log file use >>

jshint PATH_TO_.js >> path/to/text/file.txt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM