You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
634 B

/**
*
* Checks if the given dependency/module is registered on npm
*
* @param {String} moduleName - The dependency to be checked
* @returns {Promise} constant - Returns either true or false,
* based on if it exists or not
*/
export declare function npmExists(moduleName: string): Promise<any>;
/**
*
* Loops through an array and checks if a package is registered
* on npm and throws an error if it is not.
*
* @param {String[]} pkg - Array of packages to check existence of
* @returns {Array} resolvePackages - Returns a process to install the packages
*/
export declare function npmPackagesExists(pkg: string[]): void;