Home > @microsoft/node-core-library > PackageName > validate

PackageName.validate() method

Throws an exception if the specified name is not a valid package name. The packageName must not be an empty string.

Signature:

static validate(packageName: string): void;

Parameters

Parameter Type Description
packageName string  

Returns:

void