{"id":19050527,"url":"https://github.com/blakek/ignore-node_modules","last_synced_at":"2025-11-11T18:03:35.866Z","repository":{"id":77618510,"uuid":"79692722","full_name":"blakek/ignore-node_modules","owner":"blakek","description":"🙈 Hide node_modules from macOS Spotlight search","archived":false,"fork":false,"pushed_at":"2020-05-12T14:49:31.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T00:27:42.331Z","etag":null,"topics":["macos","macos-spotlight-search","node-modules","spotlight"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blakek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-22T04:06:39.000Z","updated_at":"2023-12-05T07:23:12.000Z","dependencies_parsed_at":"2023-03-10T08:46:06.326Z","dependency_job_id":null,"html_url":"https://github.com/blakek/ignore-node_modules","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/blakek/ignore-node_modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fignore-node_modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fignore-node_modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fignore-node_modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fignore-node_modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blakek","download_url":"https://codeload.github.com/blakek/ignore-node_modules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Fignore-node_modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283900033,"owners_count":26913495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","macos-spotlight-search","node-modules","spotlight"],"created_at":"2024-11-08T23:15:13.703Z","updated_at":"2025-11-11T18:03:35.838Z","avatar_url":"https://github.com/blakek.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ignore-node_modules\n\n\u003e Ignores node_modules directories from macOS Spotlight search\n\nI got tired of Spotlight draining battery and CPU. It seems `node_modules` were\npartly to blame.\n\nThis script signals Spotlight to not index `node_modules` directories.\n\nIt works by adding an empty file named `.metadata_never_index` in the top-most\n`node_modules` directory found while searching.\n\n## Usage\n\nStop indexing all `node_modules` directories in your current directory\n(recursively):\n\n```bash\n./ignore-node_modules\n```\n\nStop indexing all `node_modules` directories found within another directory\n(recursively):\n\n```bash\n./ignore-node_modules /path/to/folder\n```\n\n## Install\n\nYou can install using [Homebrew](https://brew.sh/) or manually build from\nsource:\n\n### Install with Homebrew\n\nRunning this in your terminal adds [my\ntap](https://github.com/blakek/homebrew-blakek) and installs the package:\n\n```bash\nbrew tap blakek/blakek \u0026\u0026 brew install blakek/blakek/ignore-node_modules\n```\n\n### Build from Source\n\n1. Either [clone this\n   repo](https://help.github.com/articles/cloning-a-repository/) or [download\n   the zip\n   file](https://github.com/blakek/ignore-node_modules/archive/master.zip)\n2. Add `ignore-node_modules` to your \\$PATH (e.g. `/usr/local/bin`)\n3. Make sure file permissions allow execution (e.g. `chmod +x ignore-node_modules`). This shouldn't be necessary when cloning, but is\n   likely when downloading from a browser.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakek%2Fignore-node_modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakek%2Fignore-node_modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakek%2Fignore-node_modules/lists"}