NpmViewVersionAliases.

NpmViewVersion(ICakeContext, NpmViewVersionSettings) Method

Summary

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

Syntax

public static string NpmViewVersion(this ICakeContext context, NpmViewVersionSettings settings)

Examples

var settings = new NpmViewVersionSettings();
    settings.Package = "cakejs";
    var versionString = NpmViewVersion(settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings NpmViewVersionSettings The settings.

Return Value

Type Description
string