lib/tasks/jsdoc/generateJsdoc.js
function createTmpDir(projectName, keep = false) {
	// Remove all non alpha-num characters from project name
	const sanitizedProjectName = projectName.replace(/[^A-Za-z0-9]/g, "");
	return new Promise((resolve, reject) => {
		tmp.dir({
			prefix: `ui5-tooling-tmp-jsdoc-${sanitizedProjectName}-`,
			keep,
			unsafeCleanup: true
		}, (err, path) => {
			if (err) {
				reject(err);
				return;
			}

			resolve({
				path
			});
		});
	});
}
function createTmpDir(projectName, keep = false) {
	// Remove all non alpha-num characters from project name
	const sanitizedProjectName = projectName.replace(/[^A-Za-z0-9]/g, "");
	return new Promise((resolve, reject) => {
		tmp.dir({
			prefix: `ui5-tooling-tmp-jsdoc-${sanitizedProjectName}-`,
			keep,
			unsafeCleanup: true
		}, (err, path) => {
			if (err) {
				reject(err);
				return;
			}

			resolve({
				path
			});
		});
	});
}
function createTmpDir ( projectName , keep = false ) { // Remove all non alpha-num characters from project name const sanitizedProjectName = projectName . replace ( / [^A-Za-z0-9] / g , "" ) ; return new Promise ( ( resolve , reject ) => { tmp . dir ( { prefix : ` ${ sanitizedProjectName } ` , keep , unsafeCleanup : true } , ( err , path ) => { if ( err ) { reject ( err ) ; return ; } resolve ( { path } ) ; } ) ; } ) ; }
Create a temporary directory on the host system

@private
@param {string} projectName Project name used for naming the temporary directory
@param {boolean} [keep=false] Whether to keep the temporary directory
@returns {Promise<Object>} Promise resolving with path of the temporary directory
Create a temporary directory on the host system