每个组织都会被授予一个组织作用域,这是一个与组织名称匹配的、由该组织拥有的软件包的唯一命名空间。例如,名为“wombat”的组织将拥有作用域 @wombat

🌐 Every organization is granted an organization scope, a unique namespace for packages owned by the organization that matches the organization name. For example, an organization named "wombat" would have the scope @wombat.

你可以使用范围来:

🌐 You can use scopes to:

  • 维护一个软件包的分支:@wombat/request
  • 避免与流行名称发生名称争议:@wombat/web
  • 轻松找到同一命名空间中的包

作用域内的包必须遵循与无作用域包相同的 命名指南

🌐 Packages in a scope must follow the same naming guidelines as unscoped packages.

管理无范围的包

🌐 Managing unscoped packages

虽然在创建组织时默认授予你一个范围,但你也可以使用组织来管理无范围的包或不同范围(例如用户范围)下的包。

🌐 While you are granted a scope by default when you create an organization, you can also use organizations to manage unscoped packages, or packages under a different scope (such as a user scope).