Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm init and scoped package names #6749

Closed
zeke opened this issue Nov 20, 2014 · 4 comments
Closed

npm init and scoped package names #6749

zeke opened this issue Nov 20, 2014 · 4 comments

Comments

@zeke
Copy link
Contributor

zeke commented Nov 20, 2014

Because directory names cannot contain slashes, npm init will never default to an npm-2-style scoped package name:

» mkdir -p @zeke/some-package
» cd @zeke/some-package 
» npm init
This utility blah blah...
name: (some-package) 

It might be cool if npm init suggested @zeke/somepackage, but probably not. Plus who's gonna create a directory name starting with an @? No one, that's who.

Or what about a flag or npm-config setting, like npm init --scope=@zeke?

Bah. Feel free to close this issue upon reading.

@zeke
Copy link
Contributor Author

zeke commented Nov 20, 2014

Another idea: accept a name argument: npm init @zeke/some-package

@watilde
Copy link
Contributor

watilde commented Feb 11, 2015

I like this idea npm init --scope=@zeke +1.

@othiym23
Copy link
Contributor

Good, idea, Zeke! @watilde made it a reality for you, and I've landed it in npm! 🐜🌸

@zeke
Copy link
Contributor Author

zeke commented Feb 27, 2015

🌴

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

No branches or pull requests

3 participants