{"id":17676102,"url":"https://github.com/fa7ad/private-npm-utils","last_synced_at":"2025-10-10T07:06:05.645Z","repository":{"id":187201659,"uuid":"676487047","full_name":"fa7ad/private-npm-utils","owner":"fa7ad","description":"Some useful utilities for private npm registries","archived":false,"fork":false,"pushed_at":"2023-08-09T14:12:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T19:13:13.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"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/fa7ad.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":"2023-08-09T10:04:04.000Z","updated_at":"2023-08-09T10:06:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"1478e57f-fd54-40a5-8732-a5dd8817ba31","html_url":"https://github.com/fa7ad/private-npm-utils","commit_stats":null,"previous_names":["fa7ad/private-npm-utils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fprivate-npm-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fprivate-npm-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fprivate-npm-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fa7ad%2Fprivate-npm-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fa7ad","download_url":"https://codeload.github.com/fa7ad/private-npm-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246352200,"owners_count":20763423,"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-24T07:24:27.053Z","updated_at":"2025-10-10T07:06:00.625Z","avatar_url":"https://github.com/fa7ad.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# private-npm-utils\n\nUseful utilities for managing private npm registries (like Nexus, Verdaccio. etc).\n\n## Utilities\n\nThe following utilities are currently open-sourced:\n\n### rescope_pkg.sh\n\n#### Purpose\n\nRescopes a tarball's package.json to a new scope.\nThis is useful when you want to publish a package to a private registry,\nbut the package.json's `name` field is unscoped, or using a different scope.\nThis helps with using different scopes for different registries, and also helps\nwith publishing packages to the public registry.\n\n#### Usage\n\n```bash\n$ ./rescope_pkg.sh -h\n\nUsage:\nrescope_pkg [-r REGISTRY_URL] [-s SCOPE] PACKAGE_URL\n   -r [registry_url] : set the registry url to use in publishConfig\n   -s [scope]        : set the scope to use, defaults to private (@private/)\n   \u003cpackage_url\u003e     : the url to the package tarball\nYou can also set REGISTRY_URL, PACKAGE_URL and SCOPE as environment variables\nThis might be useful for piping, usage in CI, etc.\n\n$ ./rescope_pkg.sh -r https://vdc1.internal.tld/my-suborg -s my-suborg https://nexus1.internal.tld/@suborg1/abc-next.tgz\n\n# my-suborg-abc-1.0.0.tgz will be created in the current directory,\n# With the package.json's name field set to @my-suborg/abc\n# and the publishConfig set to use the registry https://vdc1.internal.tld/my-suborg\n# You can now publish this package to the registry\n\n$ npm publish my-suborg-abc-1.0.0.tgz\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa7ad%2Fprivate-npm-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffa7ad%2Fprivate-npm-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffa7ad%2Fprivate-npm-utils/lists"}