Scans GitHub repositories and detects spelling mistakes in specified files
Modify fields within config.js
| Configuration Option | Description |
|---|---|
query |
Specify the GitHub search query, such as minimum star rating, programming language, days since last commit, or other GitHub search filters. |
limit |
Maximum number of repositories to scan during a run. |
delay |
Delay (in milliseconds) between scanning successive repositories to avoid hitting GitHub API rate limits. |
cacheFile |
Path to the cache file used to store repositories that have already been scanned. Cached repositories will be skipped in future runs. |
fileExtensions |
List of file extensions to scan for spelling mistakes (e.g. .js, .ts, .mjs, .cjs, .md). |
maxFilesPerRepo |
Maximum number of matching files to scan within a single repository. Useful for limiting runtime on very large repositories. |
- install dependencies:
npm install- Modify
config.jsas per need - Add you GitHub API key to
.env
GITHUB_TOKEN=<your-github-token>New token can be generated here: https://github.com/settings/tokens
- Run using node (Recommended: Node v24+ otherwise spellchecker module won't function):
node index.js