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

IPackageJson interface

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

Signature:

export interface IPackageJson 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

Property Type Description
version string A version number conforming to the Semantic Versioning (SemVer) standard.