{"id":17222932,"url":"https://github.com/rush/node-modules-cache","last_synced_at":"2025-03-25T16:22:18.529Z","repository":{"id":139265365,"uuid":"104412395","full_name":"Rush/node-modules-cache","owner":"Rush","description":"Skip \"npm install\" if currently existing node_modules has been built from the same package.json/package-lock.json","archived":false,"fork":false,"pushed_at":"2018-05-23T17:07:35.000Z","size":22,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T19:42:15.955Z","etag":null,"topics":[],"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/Rush.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-09-22T00:30:32.000Z","updated_at":"2024-02-26T17:19:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"2eb194a1-5aac-4bac-aaca-2779a8552fca","html_url":"https://github.com/Rush/node-modules-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rush%2Fnode-modules-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rush%2Fnode-modules-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rush%2Fnode-modules-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rush%2Fnode-modules-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rush","download_url":"https://codeload.github.com/Rush/node-modules-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245496329,"owners_count":20624873,"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":[],"created_at":"2024-10-15T04:06:45.180Z","updated_at":"2025-03-25T16:22:18.507Z","avatar_url":"https://github.com/Rush.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-modules-cache\nThis tool is useful for entirely skipping `npm install` if currently existing `node_modules` has been built from the same `package.json` and optionally `package-lock.json`. \n\nThis if often the case on CI such as Codeship, Gitlab CI or Drone.IO where caching whole `node_modules` is a common pattern.\n\n## Installation\n\nMinimum Node 6 is required.\n\n```\nnpm install -g node-modules-cache\n```\n\nor \n\n```\nwget https://rush.sh/I7cG88_dKzPzn0v+Z5hQK6DxDa4/node-modules-cache -O /usr/local/bin/node-modules-cache\n```\n\n## Usage\n\nThe below will run `npm install` automatically if our cached package.json/package-lock.json have changed.\n```\nnode-modules-cache install # you can pass any extra parameters you would pass to npm install\n```\n\nIt is equivalent to more manual usage:\n```\nnode-modules-cache check || (npm install \u0026\u0026 node-modules-cache set)\n```\n\nIf you want to reinstall all modules when the cache is invalid then use:\n```\nnode-modules-cache reinstall\n```\n\nwhich is equivalent to:\n```\nnode-modules-cache check || (rm -rf node_modules \u0026\u0026 npm install \u0026\u0026 node-modules-cache set)\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frush%2Fnode-modules-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frush%2Fnode-modules-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frush%2Fnode-modules-cache/lists"}