{"id":15606686,"url":"https://github.com/faleij/cache-deps","last_synced_at":"2025-07-08T04:06:23.939Z","repository":{"id":57192424,"uuid":"150290089","full_name":"Faleij/cache-deps","owner":"Faleij","description":"Globally cache dependencies from a package-lock.json or a bower.json for faster installs.","archived":false,"fork":false,"pushed_at":"2018-09-28T23:26:16.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T00:07:27.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Faleij.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":"2018-09-25T15:42:14.000Z","updated_at":"2018-09-28T23:26:17.000Z","dependencies_parsed_at":"2022-08-24T03:10:30.879Z","dependency_job_id":null,"html_url":"https://github.com/Faleij/cache-deps","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Faleij/cache-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faleij%2Fcache-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faleij%2Fcache-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faleij%2Fcache-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faleij%2Fcache-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Faleij","download_url":"https://codeload.github.com/Faleij/cache-deps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faleij%2Fcache-deps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264192308,"owners_count":23570756,"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-03T04:41:36.210Z","updated_at":"2025-07-08T04:06:23.919Z","avatar_url":"https://github.com/Faleij.png","language":"TypeScript","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=faleij%40gmail%2ecom\u0026lc=GB\u0026item_name=faleij\u0026item_number=cacheDeps\u0026currency_code=SEK\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"],"categories":[],"sub_categories":[],"readme":"\n[![NPM version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![License][license-image]](LICENSE)\n[![Donate][donate-image]][donate-url]\n\n# Cache Deps\nGlobally cache dependencies from a package-lock.json or a bower.json for faster installs.\n\n\n## Why?\nI wanted NPM and Bower dependencies cached in a base docker image for faster builds of child images but there were no built in commands for populating the cache of either NPM or Bower, this is the tool to provide that functionality.\n\n\n## Install\n`npm i cache-deps -g`\n\n\n## Usage\n\n### NPM\n⚠️ Only tested with version 6.4.1  \n`npm-cache-add --help`\n\n`npm-cache-add package-lock.json`\n\n### Bower\n⚠️ Only tested with version 1.8.4  \n`bower-cache-add --help`\n\n`bower-cache-add bower.json`\n\n\n## API\nNone as of now, it's on the TODO list.\n\n\n## Developer\n\n### Install\n```bash\ngit clone https://github.com/Faleij/cache-deps.git\ncd cache-deps\nnpm install\nnpm link # optional, enables \"npm-cache-add\" and \"bower-cache-add\" globally\n```\n\n### Build\nBuild Once:  \n`npm run build`\n\nRebuild on file changes:  \n`npm run build -- --watch`\n\nLook at [typescript compiler options](https://www.typescriptlang.org/docs/handbook/compiler-options.html) for more options\n\n### Styleguide\nAirbnbs styleguide is used.  \nTslint ensures compliance.\n\n\n## License\n\n[MIT](LICENSE)\n\nRequire other licesing options? Open an issue.\n\nCopyright (c) 2018 Faleij [faleij@gmail.com](mailto:faleij@gmail.com)\n\n[npm-image]: http://img.shields.io/npm/v/cache-deps.svg\n[npm-url]: https://npmjs.org/package/cache-deps\n[downloads-image]: https://img.shields.io/npm/dm/cache-deps.svg\n[downloads-url]: https://npmjs.org/package/cache-deps\n[travis-image]: https://travis-ci.org/Faleij/cache-deps.svg?branch=master\n[travis-url]: https://travis-ci.org/Faleij/cache-deps\n[coveralls-image]: https://coveralls.io/repos/Faleij/cache-deps/badge.svg?branch=master\u0026service=github\n[coveralls-url]: https://coveralls.io/github/Faleij/cache-deps?branch=master\n[license-image]: https://img.shields.io/badge/license-MIT-blue.svg\n[donate-image]: https://img.shields.io/badge/Donate-PayPal-green.svg\n[donate-url]: https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=faleij%40gmail%2ecom\u0026lc=GB\u0026item_name=faleij\u0026item_number=cacheDeps\u0026currency_code=SEK\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaleij%2Fcache-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaleij%2Fcache-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaleij%2Fcache-deps/lists"}