{"id":22025713,"url":"https://github.com/dwango-js/private-npm-publish","last_synced_at":"2025-03-23T11:12:33.366Z","repository":{"id":29620445,"uuid":"33161156","full_name":"dwango-js/private-npm-publish","owner":"dwango-js","description":"A command line tool to prevent accidental npm publish for scoped packages.","archived":false,"fork":false,"pushed_at":"2015-04-04T08:22:36.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T00:18:49.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dwango-js.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-03-31T02:47:29.000Z","updated_at":"2015-04-20T17:18:46.000Z","dependencies_parsed_at":"2022-09-13T17:13:29.017Z","dependency_job_id":null,"html_url":"https://github.com/dwango-js/private-npm-publish","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fprivate-npm-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fprivate-npm-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fprivate-npm-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fprivate-npm-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwango-js","download_url":"https://codeload.github.com/dwango-js/private-npm-publish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245090877,"owners_count":20559298,"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-11-30T07:19:13.426Z","updated_at":"2025-03-23T11:12:33.342Z","avatar_url":"https://github.com/dwango-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# private-npm-publish [![Build Status](https://travis-ci.org/dwango-js/private-npm-publish.svg)](https://travis-ci.org/dwango-js/private-npm-publish)\n\nA command line tool to prevent accidental `npm publish` for [scoped packages](https://docs.npmjs.com/misc/scope \"Scoped packages\").\n\nThis command is wrapper of `npm publish`.\n\nJust a simple tool: \n\n1. Check the validity of scoped packages?\n2. Run `npm publish` =\u003e to your private registry!\n\n## Installation\n\n    npm install -g private-npm-publish\n\n## Usage\n\n    $ private-npm-publish\n    # == Check the package and `npm publish`\n\n## Tests\n\n    $ npm test\n\n## FAQ\n\n### Why wrapper command?\n   \nnpm command doesn't provide global hook for `npm publish`.   \n\n### Logic of checker?\n\nprivate-npm-publish use [scoped-modules-checker](https://github.com/azu/scoped-modules-checker \"scoped-modules-checker\") module.\n\n### I don't know what to do.\n\nWorkflow: Create npm package -\u003e publish private.\n\n```sh\n# the safety way for creating scoped packages\nnpm login —registry=http://example.com —scope=@myorg\nnpm config set @myorg:registry: http://example.com\nnpm init mypackage —scope=myorg\n# the safety way for publishing scoped packages\nnpm install -g private-npm-publish\nprivate-npm-publish\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwango-js%2Fprivate-npm-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwango-js%2Fprivate-npm-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwango-js%2Fprivate-npm-publish/lists"}