NpmViewVersionAliases.

NpmViewVersion(ICakeContext, Action<NpmViewVersionSettings>) Method

Summary

View the version of a package using the settings returned by a configurator.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm
Containing Type
NpmViewVersionAliases

Syntax

public static string NpmViewVersion(this ICakeContext context, Action<NpmViewVersionSettings> configurator)

Examples

var versionString = NpmViewVersion(settings => 
        settings.ForPackage("cakejs"));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
configurator Action<NpmViewVersionSettings> The settings configurator.

Return Value

Type Description
string