{"id":15673839,"url":"https://github.com/lmammino/package-strip-deps","last_synced_at":"2025-05-01T02:32:40.982Z","repository":{"id":12780844,"uuid":"72797688","full_name":"lmammino/package-strip-deps","owner":"lmammino","description":"A little command line utility that allows to strip dependencies from a NPM package.json file","archived":false,"fork":false,"pushed_at":"2024-11-08T03:18:50.000Z","size":297,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T11:17:02.115Z","etag":null,"topics":["node","nodejs","package","redirection","strip-deps"],"latest_commit_sha":null,"homepage":"https://lmammino.github.io/package-strip-deps/","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/lmammino.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":"2016-11-03T23:58:09.000Z","updated_at":"2017-01-19T19:52:55.000Z","dependencies_parsed_at":"2024-10-23T11:25:58.071Z","dependency_job_id":null,"html_url":"https://github.com/lmammino/package-strip-deps","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.5,"last_synced_commit":"6657dddb3f07299fdde56e4e7d6d88a0db613132"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fpackage-strip-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fpackage-strip-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fpackage-strip-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fpackage-strip-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmammino","download_url":"https://codeload.github.com/lmammino/package-strip-deps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251812478,"owners_count":21647914,"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":["node","nodejs","package","redirection","strip-deps"],"created_at":"2024-10-03T15:42:24.451Z","updated_at":"2025-05-01T02:32:40.957Z","avatar_url":"https://github.com/lmammino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# package-strip-deps\n\n[![npm version](https://badge.fury.io/js/package-strip-deps.svg)](http://badge.fury.io/js/package-strip-deps)\n[![Build Status](https://travis-ci.org/lmammino/package-strip-deps.svg?branch=master)](https://travis-ci.org/lmammino/package-strip-deps)\n[![codecov.io](https://codecov.io/gh/lmammino/package-strip-deps/coverage.svg?branch=master)](https://codecov.io/gh/lmammino/package-strip-deps)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n\nA little command line utility that allows to strip dependencies from a NPM package.json file.\n\nThe command basically takes the JSON content of a `package.json` file and prints in the standard output the same content but by stripping\nthe keys `dependencies` and `devDependencies`.\n\n\n## Install\n\nGlobally:\n\n```bash\nnpm install --global package-strip-deps\n```\n\nOr as a dev dependency (e.g. you need it as part of your build process)\n\n```bash\nnpm install --save-dev package-strip-deps\n```\n\n\n## Usage\n\nUsing \"pipes\":\n\n```bash\ncat package.json | package-strip-deps\n```\n\nUsing input redirection:\n\n```bash\npackage-strip-deps \u003c package.json\n```\n\nIf you want to save the output to a file just use output redirection:\n\n```bash\npackage-strip-deps \u003c package.json \u003e strippedPackage.json\n```\n\n\n## Keep specific packages\n\nIf you want to keep specific packages from either `dependencies` or `devDependencies`,\nyou can use the `--keep` flag as follows:\n\n```bash\npackage-strip-deps --keep serverless --keep lodash\n```\n\nIn this case `serverless` and `lodash` will remain in the final JSON and all the other\ndependencies will be stripped\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this project.\nYou can contribute just by submitting bugs or suggesting improvements by\n[opening an issue on GitHub](https://github.com/lmammino/package-strip-deps/issues).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). © Luciano Mammino.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmammino%2Fpackage-strip-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmammino%2Fpackage-strip-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmammino%2Fpackage-strip-deps/lists"}