Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IPackageJson

IPackageJson interface

An interface for accessing common fields from a package.json file.

Signature:

export interface IPackageJson extends INodePackageJson 

Extends: INodePackageJson

Remarks

This interface describes a package.json file format whose name and version field are required. In some situations, the version field is optional; in that case, use the INodePackageJson interface instead.

More fields may be added to this interface in the future. For documentation about the package.json file format, see the CommonJS Packages specification and the NPM manual page.

Properties

PropertyModifiersTypeDescription
versionstringA version number conforming to the Semantic Versioning (SemVer) standard.