Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for organization #14

Closed
rmariuzzo opened this issue Dec 30, 2017 · 5 comments · Fixed by #36
Closed

Support for organization #14

rmariuzzo opened this issue Dec 30, 2017 · 5 comments · Fixed by #36

Comments

@rmariuzzo
Copy link

rmariuzzo commented Dec 30, 2017

NPM has organization which work along with the scoped package features. Therefore, I think it would be handy to do:

npm-name @elemental

The @ to detect an org instead of a package name.

@sindresorhus
Copy link
Owner

Good idea. PR welcome :)

@rmariuzzo
Copy link
Author

Unfortunately, the NPM registry doesn't provide an endpoint to detect orgs. However, I was able to add support for usage as: npm-name @sindresorhus/is. Do you think this would be worth a PR? I have already done this at 32606b8.

@sindresorhus
Copy link
Owner

@rmariuzzo You could maybe do a HEAD request to https://www.npmjs.com/org/ava where ava is the org name to check. That will only work for public orgs though.

Could also potentially do the same form request as done here: https://www.npmjs.com/org/create (Try creating an org named ava and you'll see they notify that it already exists.

@sidoshi
Copy link
Contributor

sidoshi commented Jun 23, 2019

Can I work on this?

@sindresorhus
Copy link
Owner

Go ahead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants