In my `package.json' file, it seems that all the Angular depedencies are prefixed by @. What does this mean? E.g.
"dependencies": {
"@angular/common": "2.0.0-rc.5",
Why not just as below, with no @?
"dependencies": {
"angular/common": "2.0.0-rc.5",
It allows organizations to make it clear which packages are 'official' and which ones are not. For example, if a package has the scope @angular , you know it was published by the Angular core team.
Scoped packages in npm are preceded by an '@' symbol. A scope allows you to create a package with the same name as a package created by another user or Org without conflict. https://docs.npmjs.com/about-scopes.
Major, minor and patch represent the different releases of a package. npm uses the tilde (~) and caret (^) to designate which patch and minor versions to use respectively. So if you see ~1.0. 2 it means to install version 1.0. 2 or the latest patch version such as 1.0.
All npm packages have a name. Some package names also have a scope. A scope follows the usual rules for package names (URL-safe characters, no leading dots or underscores). When used in package names, scopes are preceded by an @ symbol and followed by a slash, e.g.
npm has two types of modules:
Scopes are a way of grouping related packages together, and also affect a few things about the way npm treats the package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With