{"id":13671408,"url":"https://github.com/th507/npm-shrinkwrap-install","last_synced_at":"2025-04-27T18:31:16.024Z","repository":{"id":36640869,"uuid":"40947144","full_name":"th507/npm-shrinkwrap-install","owner":"th507","description":"Automatic synchronise shrinkwrap file with package install/update/uninstall.","archived":false,"fork":false,"pushed_at":"2015-08-18T05:15:45.000Z","size":132,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T02:46:47.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/th507.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}},"created_at":"2015-08-18T02:51:32.000Z","updated_at":"2023-02-25T12:40:24.000Z","dependencies_parsed_at":"2022-09-17T03:23:56.652Z","dependency_job_id":null,"html_url":"https://github.com/th507/npm-shrinkwrap-install","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th507%2Fnpm-shrinkwrap-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th507%2Fnpm-shrinkwrap-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th507%2Fnpm-shrinkwrap-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th507%2Fnpm-shrinkwrap-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/th507","download_url":"https://codeload.github.com/th507/npm-shrinkwrap-install/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187106,"owners_count":21549583,"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-08-02T09:01:08.863Z","updated_at":"2025-04-27T18:31:15.749Z","avatar_url":"https://github.com/th507.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# npm-shrinkwrap-install\n\nAutomatic synchronise shrinkwrap file with package install/update/uninstall.\n\n\n# Install\n```bash\n$ npm install npm-shrinkwrap-install -g\n```\n\nThis is a CLI-only package (for now).\n\nRequire Node.js \u003e= 0.11, or iojs \u003e= 1.0\n# Usage\n## Install/Update a package\n\n```bash\n$ npm-install babel@latest --save\n```\n\nYou could manually alter the version in package.json and run `npm-install` as well.\n\n\n**Notice:**\n\nBefore updating shrinkwrap, the script will try to verify node_modules content with your package.json. Which means:\n- Any package not included in `dependencies` will be pruned. So it is mandatory to use `--save` when installing new packages.\n- Any package with non-strict version description (^, ~, 0.2.x, \\*, latest) in package.json will be updated. If you which to opt out this automatical update check, just use a strict version like 0.2.3.\n\n## Uninstall a package\n\n```bash\n$ npm-uninstall babel --save\n```\n\nShrinkwrap file will be automatically in sync with your dependencies in package.json.\n\n**Notice:**\n\nIf `--save` is omitted, the script will generate an error since node_modules content does not agree with your package.json.\n\n## Create shrinkwrap file manually\n\n```bash\n$ npm-shrinkwrap\n```\n\n# Commands and Aliases\n\n## Install\n`npm-install`\n`npm-i`\n\nAccepts all arguments for `npm install`\n\n## Uninstall\n`npm-uninstall`\n`npm-un`\n`npm-remove`\n`npm-rm`\n`npm-r`\n\nAccepts all arguments for `npm uninstall`\n\n## Shrinkwrap\n`npm-shrinkwrap`\n\nAccepts all arguments for Uber's [npm-shrinkwrap](http://github.com/uber/npm-shrinkwrap)\n\n# Credit\n\nThis script is largely based on Uber's [npm-shrinkwrap](http://github.com/uber/npm-shrinkwrap). At the time of the writing, their tool does not support [scoped package](https://docs.npmjs.com/misc/scope). A [pull-request](https://github.com/uber/npm-shrinkwrap/pull/80) is created to rectify this issue and yet to be accepted.\n\nAs a temporary measure, I've forked their project and applied my patch to support scoped package: [@th507/npm-shrinkwrap](https://www.npmjs.com/package/@th507/npm-shrinkwrap). `npm-shrinkwrap-install` is currently dependent upon @th507/npm-shrinkwrap.\n\n# License\n\nCopyright (c) 2015 Jingwei \"John\" Liu\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth507%2Fnpm-shrinkwrap-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fth507%2Fnpm-shrinkwrap-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth507%2Fnpm-shrinkwrap-install/lists"}