'use strict';/** * Xpipe - class consisting of only static methods * @class */classXpipe{/** * Return a cross-platform IPC path * @return {string} */staticeq(path){constprefix=Xpipe.prefix;if(prefix.endsWith('/')&&path.startsWith('/')){returnprefix+path.substr(1);}returnprefix+path;}/** * Returns the prefix on Windows and empty string otherwise * @return {string} */staticgetprefix(){returnprocess.platform==='win32'?'//./pipe/':'';}}module.exports=Xpipe;