{"id":51943020,"url":"https://github.com/atlassian/copy-pkg","last_synced_at":"2026-07-28T21:02:45.825Z","repository":{"id":26502441,"uuid":"109216594","full_name":"atlassian/copy-pkg","owner":"atlassian","description":"Copy a package.json with filters and normalization","archived":false,"fork":false,"pushed_at":"2023-12-15T05:55:48.000Z","size":250,"stargazers_count":8,"open_issues_count":5,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-21T02:28:53.326Z","etag":null,"topics":["cli","copy","fs","npm","package-json"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atlassian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-11-02T04:10:09.000Z","updated_at":"2023-10-08T11:37:05.000Z","dependencies_parsed_at":"2023-12-15T06:53:18.833Z","dependency_job_id":null,"html_url":"https://github.com/atlassian/copy-pkg","commit_stats":null,"previous_names":["thejameskyle/copy-pkg"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/atlassian/copy-pkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atlassian%2Fcopy-pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atlassian%2Fcopy-pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atlassian%2Fcopy-pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atlassian%2Fcopy-pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atlassian","download_url":"https://codeload.github.com/atlassian/copy-pkg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atlassian%2Fcopy-pkg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36007830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-28T02:00:06.341Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","copy","fs","npm","package-json"],"created_at":"2026-07-28T21:02:45.280Z","updated_at":"2026-07-28T21:02:45.816Z","avatar_url":"https://github.com/atlassian.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copy-pkg\n\n[![Atlassian license](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat-square)](LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](CONTRIBUTING.md)\n\nCopy a `package.json`\n\n## Usage\n\n```sh\ncopy-pkg package.json dist/package.json --only name,version\n```\n\n```js\nconst copyPkg = require('copy-pkg');\n\ncopyPkg('package.json', 'dist/package.json', {\n  ignore: ['devDependencies'],\n});\n\ncopyPkg.sync('package.json', 'dist/package.json', {\n  normalize: true,\n});\n```\n\n## Installation\n\n```sh\nyarn add copy-pkg\n```\n\n\n**Options**\n\n- `opts.normalize` (`--normalize`, `-n`) - Normalize the package.json contents (boolean)\n- `opts.ignore` (`--ignore`, `-i`) - Select keys not to copy (array)\n- `opts.only` (`--only`, `-o`) - Select keys to copy (array)\n\n## Contributions\n\nContributions to [Project name] are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details. \n\n## License\n\nCopyright (c) 2017 - 2022 Atlassian and others.\nApache 2.0 licensed, see [LICENSE](LICENSE) file.\n\n## Related\n\n- [read-pkg](https://github.com/sindresorhus/read-pkg)\n- [write-pkg](https://github.com/sindresorhus/write-pkg)\n\n[![With Thanks! from Atlassian](https://raw.githubusercontent.com/atlassian-internal/oss-assets/master/banner-with-thanks-light.png)](https://www.atlassian.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlassian%2Fcopy-pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatlassian%2Fcopy-pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatlassian%2Fcopy-pkg/lists"}