ProfK
ProfK

Reputation: 51064

What does the at sign, or '@', mean as a prefix to an angular module as a package name?

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",

Upvotes: 8

Views: 1820

Answers (1)

ScottL
ScottL

Reputation: 1755

npm has two types of modules:

  • Global modules - npm install mypackage
  • Scoped modules - npm install @myorg/mypackage

Scopes are a way of grouping related packages together, and also affect a few things about the way npm treats the package.

Upvotes: 7

Related Questions