"name"
- 类型:<string>
{
"name": "package-name"
} "name" 字段定义了你的包的名称。发布到 npm 注册表需要一个满足 某些要求 的名称。
【The "name" field defines your package's name. Publishing to the
npm registry requires a name that satisfies
certain requirements.】
"name" 字段可以与 "exports" 字段一起使用,通过包名来 自我指涉 一个包。
【The "name" field can be used in addition to the "exports" field to
self-reference a package using its name.】