node/packageInfo

Members

(inner, constant) packageInfoProvider :ProviderCreator.<PackageInfoProviderOptions>

Source:
Tutorials:

The service provider that once registered on the app container will set the result of packageInfo as a service.

Type:

Methods

(inner) packageInfo(pathUtils) → {Object.<string, any>}

Source:
Tutorials:
To Do:
  • This should be `async`, or at least have an async alternative.

Gets the contents of the implementation's package.json.

Parameters:
Name Type Description
pathUtils PathUtils

To build the path to the package.json.

Returns:
Type
Object.<string, any>

Type Definitions

PackageInfoProviderOptions

Source:
Properties:
Name Type Description
serviceName string

The name that will be used to register the result of packageInfo. Its default value is packageInfo.

services PackageInfoServiceMap

A dictionary with the services that need to be injected on the function.

Type:

PackageInfoServiceMap

Source:
Properties:
Name Type Attributes Description
pathUtils string | PathUtils <optional>

The name of the service for PathUtils or an instance of it. pathUtils by default.

Type: