{"id":13475755,"url":"https://github.com/sindresorhus/npm-name-cli","last_synced_at":"2025-04-05T00:07:44.513Z","repository":{"id":52820210,"uuid":"44530124","full_name":"sindresorhus/npm-name-cli","owner":"sindresorhus","description":"Check whether a package or organization name is available on npm","archived":false,"fork":false,"pushed_at":"2024-02-10T19:41:36.000Z","size":958,"stargazers_count":287,"open_issues_count":2,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-27T19:26:50.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sindresorhus.png","metadata":{"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"},"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}},"created_at":"2015-10-19T11:28:51.000Z","updated_at":"2025-01-17T03:07:58.000Z","dependencies_parsed_at":"2024-02-22T18:04:58.283Z","dependency_job_id":"1ef5cc60-e09f-4d32-847d-01b0101da5dc","html_url":"https://github.com/sindresorhus/npm-name-cli","commit_stats":{"total_commits":42,"total_committers":11,"mean_commits":"3.8181818181818183","dds":"0.26190476190476186","last_synced_commit":"5d7dc3ff12174380ae8ee90158d14a46f7d3261b"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fnpm-name-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fnpm-name-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fnpm-name-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fnpm-name-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/npm-name-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266563,"owners_count":20910836,"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-07-31T16:01:23.262Z","updated_at":"2025-04-05T00:07:44.494Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Development","JavaScript","Packages"],"sub_categories":["Npm","Registry"],"readme":"# npm-name-cli\n\n\u003e Check whether a package or organization name is available on npm\n\n\u003cimg src=\"screenshot.gif\" width=\"300\"\u003e\n\n*Feedback about the squatter detection should be opened on the [`squatter`](https://github.com/sholladay/squatter) repo.*\n\n## Install\n\n```sh\nnpm install --global npm-name-cli\n```\n\n## Usage\n\n```\n$ npm-name --help\n\n  Usage\n    $ npm-name \u003cname\u003e …\n\n  Examples\n    $ npm-name chalk\n    ✖ chalk is unavailable\n\n    $ npm-name abc123\n    ⚠ abc123 is squatted\n\n    $ npm-name hello --similar\n    ⚠ hello is squatted\n    Similar names:\n    ✔ hullo is available\n    ✔ how-do-you-do is available\n\n    $ npm-name unicorn-cake\n    ✔ unicorn-cake is available\n\n    $ npm-name @ava\n    ✖ @ava is unavailable\n\n    $ npm-name @abc123\n    ✔ @abc123 is available\n\n    $ npm-name @sindresorhus/is unicorn-cake\n    ✖ @sindresorhus/is is unavailable\n    ✔ unicorn-cake is available\n\n  Exits with code 0 when all names are available or 2 when any names are taken\n```\n\n## FAQ\n\n### Why would I use `npm-name` rather than npm's built-in search?\n\n1. Nicer \u0026 simpler output\n\n2. [Squatter detection](https://github.com/sholladay/squatter)\n\n3. Supports checking the availability of organization names\n\n4. Suggest other similar names if not available\n\n5. Performance\n\n  Using npm 4.0.2\n\n  ```\n  $ time npm search unicorn-cake\n  No matches found for \"unicorn-cake\"\n  npm search unicorn-cake  55.50s user 0.82s system 101% cpu 55.380 total\n  $ time npm-name unicorn-cake\n  ✔ unicorn-cake is available\n  npm-name unicorn-cake  0.17s user 0.02s system 35% cpu 0.535 total\n  ```\n\n## Related\n\n- [npm-name](https://github.com/sindresorhus/npm-name) - API for this module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fnpm-name-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fnpm-name-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fnpm-name-cli/lists"}