From the course: Learning npm: A Package Manager
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Publishing a scoped package
From the course: Learning npm: A Package Manager
Publishing a scoped package
- [Instructor] Now let's explore a scope package. As mentioned in the last video, it can be public or private. Scope is when you add an organization to the name or your own username. So you have the package with an @ sign at the beginning. For example, if you added @manny as the organization to the My Package when you install it, you need to use the full name as demonstrated here with a forward slash when you install it after. So if somebody use your package, they're going to need to use the organization name before. So let's go ahead and explore how this works. So the first thing I'm going to do is remove the package.json file here because you actually set the scope when you initialize your package.json file. So let's go ahead and do that. I'm just going to remove it and it's going to look different when you initialize it because now it's going to either read your notes folder here. I actually removed it so we don't…