介绍
【Introduction】
一个包是由 package.json 文件描述的文件夹树。该包由包含 package.json 文件的文件夹及其所有子文件夹组成,直到遇到下一个包含另一个 package.json 文件的文件夹,或者一个名为 node_modules 的文件夹。
【A package is a folder tree described by a package.json file. The package
consists of the folder containing the package.json file and all subfolders
until the next folder containing another package.json file, or a folder
named node_modules.】
本页面为编写 package.json 文件的包作者提供指导,同时提供 Node.js 定义的 package.json 字段参考。
【This page provides guidance for package authors writing package.json files
along with a reference for the package.json fields defined by Node.js.】