{"id":16247814,"url":"https://github.com/jcblw/npm-remove-outdated","last_synced_at":"2025-04-07T20:35:31.222Z","repository":{"id":65465136,"uuid":"55361853","full_name":"jcblw/npm-remove-outdated","owner":"jcblw","description":"This is a utility that you can run before npm install to remove outdated dependencies in your node_modules file.","archived":false,"fork":false,"pushed_at":"2017-05-12T14:21:43.000Z","size":23,"stargazers_count":1,"open_issues_count":38,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T04:19:13.573Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcblw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-03T18:26:49.000Z","updated_at":"2019-02-08T13:44:00.000Z","dependencies_parsed_at":"2023-01-24T17:45:23.259Z","dependency_job_id":null,"html_url":"https://github.com/jcblw/npm-remove-outdated","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/jcblw%2Fnpm-remove-outdated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fnpm-remove-outdated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fnpm-remove-outdated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fnpm-remove-outdated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcblw","download_url":"https://codeload.github.com/jcblw/npm-remove-outdated/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247725423,"owners_count":20985695,"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-10T14:38:51.140Z","updated_at":"2025-04-07T20:35:31.195Z","avatar_url":"https://github.com/jcblw.png","language":"JavaScript","readme":"## NPM remove outdated\n\n[![Build Status](https://travis-ci.org/jcblw/npm-remove-outdated.svg?branch=master)](https://travis-ci.org/jcblw/npm-remove-outdated) [![Coverage Status](https://coveralls.io/repos/github/jcblw/npm-remove-outdated/badge.svg?branch=master)](https://coveralls.io/github/jcblw/npm-remove-outdated?branch=master)\n\nThis is a utility that will remove outdated dependencies from your `node_modules`. The reason why this was built is to allow deploy environments easier ways to cache their packages. Right now if you run `npm install` with a shrink wrap file and you have outdated cached node modules nothing will happen because it assumes the package installed is the correct version of the package. All this script does is check the version of the installed packages against the versions in the shrink-wrap and removes the folder to make `npm install` treat that as a dependency that has not been installed yet.\n\n### Installation\n\n    $ npm install -g npm-remove-outdated\n\nthats it :D\n\n### Usage\n\n    $ npm-remove-outdated \u0026\u0026 npm install\n\nThis package can work with either a `npm-shrinkwrap.json` file or a  `package.json` file. When using *shrinkwrap* the version check is an explicit `===` to the version in the package file. When no *shrinkwrap* is found the *package.json* is used. Then the version checking is based off of [semver](https://www.npmjs.com/package/semver)'s satisfies method.\n\n### Development\n\n    npm i\n    npm test\n\nIf you contribute plz run `npm test` before making a PR.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcblw%2Fnpm-remove-outdated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcblw%2Fnpm-remove-outdated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcblw%2Fnpm-remove-outdated/lists"}