{"id":21186028,"url":"https://github.com/codemodsquad/invalidate-require-cache","last_synced_at":"2025-03-14T20:17:03.342Z","repository":{"id":40783678,"uuid":"242432381","full_name":"codemodsquad/invalidate-require-cache","owner":"codemodsquad","description":"Delete modules in a folder from require.cache unless the folder is unchanged since last call","archived":false,"fork":false,"pushed_at":"2022-12-10T19:11:09.000Z","size":2843,"stargazers_count":1,"open_issues_count":21,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T13:04:27.028Z","etag":null,"topics":["hot-reloading","require"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/codemodsquad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-23T00:28:34.000Z","updated_at":"2021-05-26T07:01:37.000Z","dependencies_parsed_at":"2023-01-26T08:16:14.102Z","dependency_job_id":null,"html_url":"https://github.com/codemodsquad/invalidate-require-cache","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodsquad%2Finvalidate-require-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodsquad%2Finvalidate-require-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodsquad%2Finvalidate-require-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemodsquad%2Finvalidate-require-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemodsquad","download_url":"https://codeload.github.com/codemodsquad/invalidate-require-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243639556,"owners_count":20323510,"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","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":["hot-reloading","require"],"created_at":"2024-11-20T18:20:50.257Z","updated_at":"2025-03-14T20:17:03.317Z","avatar_url":"https://github.com/codemodsquad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# invalidate-require-cache\n\n[![CircleCI](https://circleci.com/gh/codemodsquad/invalidate-require-cache.svg?style=svg)](https://circleci.com/gh/codemodsquad/invalidate-require-cache)\n[![Coverage Status](https://codecov.io/gh/codemodsquad/invalidate-require-cache/branch/master/graph/badge.svg)](https://codecov.io/gh/codemodsquad/invalidate-require-cache)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![npm version](https://badge.fury.io/js/invalidate-require-cache.svg)](https://badge.fury.io/js/invalidate-require-cache)\n\nDelete modules in a folder from require.cache unless the folder is unchanged since last call.\n\nThis is used by `jscodeshift-choose-parser` to ensure that it always uses the current version of babel installed\nin a project.\n\n```js\nconst invalidateRequireCache = require('invalidate-require-cache')\n\ninvalidateRequireCache('path/to/directory')\n// now everything inside that directory has been deleted from require.cache\n// (unless it is unchanged since the last call)\n// and will be reloaded if you require it again.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemodsquad%2Finvalidate-require-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemodsquad%2Finvalidate-require-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemodsquad%2Finvalidate-require-cache/lists"}