https://github.com/qubyte/multijshint
Pipe a list of files to this utility to run JSHint on them.
https://github.com/qubyte/multijshint
Last synced: 9 months ago
JSON representation
Pipe a list of files to this utility to run JSHint on them.
- Host: GitHub
- URL: https://github.com/qubyte/multijshint
- Owner: qubyte
- Created: 2013-04-18T16:10:06.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T23:13:50.000Z (almost 9 years ago)
- Last Synced: 2025-09-18T08:56:51.239Z (9 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# multijshint
This is a simple utility that allows a single node instance to process a list of files through JSHint. This is useful for large projects that may need to test many files, and feel the lag from booting a node process for each.
Pipe this utility a list of file paths and it will do the rest. For example, with a global installation:
```bash
ls ../path/to/files/*.js | multijshint
```
For a local install, in your `package.json` scripts field a similar line can be placed (although you should do something better to make a list of your files, say for the git pre-commit hook):
```json
{
"scripts": {
"multijshint": "ls ./lib/*.js | multijshint"
}
}
```
When testing files, those with errors will have some information pretty printed so that you can easily find and correct the error. The exit status of this utility is equal to the number of files that failed.
## TODO
Handle flags so that a config file can be indicated.