Class NPM::PackageJSON

A package.json configuration object.

Direct supertypes

Indirect supertypes

Predicates

declaresDependency

Holds if this package declares a dependency (including optional, development and bundled dependencies) on the given version of the given package.

getAContributor

Gets information for a contributor to this package.

getADependenciesObject

Gets a JSON object describing a group of dependencies of this package of the kind specified by depkind: "" for normal dependencies, "dev" for devDependencies, "bundled" for bundledDependencies and "opt" for optionalDependencies.

getAFile

Gets a file for this package.

getAKeyword

Gets a keyword for this package.

getAManFile

Gets a manual page for this package.

getAuthor

Gets the author information of this package.

getBin

Gets the path of a command defined for this package.

getBlacklistedCPU

Gets a platform not supported by this package.

getBlacklistedOS

Gets an operating system not supported by this package.

getBugs

Gets the bug tracker information of this package.

getBundledDependencies

Gets the bundled dependencies of this package.

getCPUs

Gets information about platforms supported by this package.

getConfig

Gets configuration information for this package.

getDependencies

Gets the dependencies of this package.

getDescription

Gets the description of this package.

getDevDependencies

Gets the development dependencies of this package.

getDirectories

Gets information about the directories of this package.

getEngines

Gets the engine dependencies of this package.

getFiles

Gets the array of files for this package.

getHomepage

Gets the homepage URL of this package.

getKeywords

Gets the array of keywords for this package.

getLicense

Gets the license information of this package.

getMain

Gets the main module of this package.

getMainModule

Gets the main module of this package.

getOSs

Gets information about operating systems supported by this package.

getOptionalDependencies

Gets the optional dependencies of this package.

getPackageName

Gets the name of this package.

getPeerDependencies

Gets the peer dependencies of this package.

getPublishConfig

Gets publishing configuration information about this package.

getRepository

Gets repository information for this package.

getScripts

Gets information about the scripts of this package.

getVersion

Gets the version of this package.

getWhitelistedCPU

Gets a platform supported by this package.

getWhitelistedOS

Gets an operating system supported by this package.

isEngineStrict

Holds if this package has strict engine requirements.

isPreferGlobal

Holds if this package prefers to be installed globally.

isPrivate

Holds if this is a private package.

Inherited predicates

getChild

Gets the ith child value of this value.

from JSONValue
getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLocation

Gets this element’s location.

from JSONValue
getNumLines

Gets the number of lines covered by this element.

from Locatable
getParent

Gets the parent value to which this value belongs, if any.

from JSONValue
getPropStringValue

Gets the string value of property name of this object.

from JSONObject
getPropValue

Gets the value of property name of this object.

from JSONObject
getStartLine

Gets the line on which this element starts.

from Locatable
isTopLevel

Holds if this JSON value is the top level element in its enclosing file.

from JSONValue
toString

Gets a textual representation of this element.

from JSONValue

Charpred