bin/client-install.js
function(){
		if (destinationIsRelative){
			_destination = _path.join(process.cwd(), "../..", _destination);
		}
		
		if(!_fs.existsSync(_destination)){
			_fs.mkdirSync(_destination);
		}
		
		var destinationPath = _path.join(_destination, "/" + SCRIPT_NAME);
		var sourcePath = _path.resolve(_path.dirname(module.filename), "../src/" + SCRIPT_NAME);
		var source = _fs.createReadStream(sourcePath);
		var dest = _fs.createWriteStream(destinationPath);
		dest.pipe(source);
		
		console.log("Client Installation Complete!\n");
		console.log(SCRIPT_NAME + " has been installed at: " + destinationPath);
		_prompt.close();
	}
function(){
		if (destinationIsRelative){
			_destination = _path.join(process.cwd(), "../..", _destination);
		}
		
		if(!_fs.existsSync(_destination)){
			_fs.mkdirSync(_destination);
		}
		
		var destinationPath = _path.join(_destination, "/" + SCRIPT_NAME);
		var sourcePath = _path.resolve(_path.dirname(module.filename), "../src/" + SCRIPT_NAME);
		var source = _fs.createReadStream(sourcePath);
		var dest = _fs.createWriteStream(destinationPath);
		dest.pipe(source);
		
		console.log("Client Installation Complete!\n");
		console.log(SCRIPT_NAME + " has been installed at: " + destinationPath);
		_prompt.close();
	}
function ( ) { if ( destinationIsRelative ) { _destination = _path . join ( process . cwd ( ) , "../.." , _destination ) ; } if ( ! _fs . existsSync ( _destination ) ) { _fs . mkdirSync ( _destination ) ; } var destinationPath = _path . join ( _destination , "/" + SCRIPT_NAME ) ; var sourcePath = _path . resolve ( _path . dirname ( module . filename ) , "../src/" + SCRIPT_NAME ) ; var source = _fs . createReadStream ( sourcePath ) ; var dest = _fs . createWriteStream ( destinationPath ) ; dest . pipe ( source ) ; console . log ( "Client Installation Complete!\n" ) ; console . log ( SCRIPT_NAME + " has been installed at: " + destinationPath ) ; _prompt . close ( ) ; }
Copies the client-side script to the provided destination directory
@private
Copies the client - side script to the provided destination directory