dist/es/methods/node.js
function cleanPipeName(str) {
  if (process.platform === 'win32' && !str.startsWith('\\\\.\\pipe\\')) {
    str = str.replace(/^\//, '');
    str = str.replace(/\//g, '-');
    return '\\\\.\\pipe\\' + str;
  } else {
    return str;
  }
}
function cleanPipeName(str) {
  if (process.platform === 'win32' && !str.startsWith('\\\\.\\pipe\\')) {
    str = str.replace(/^\//, '');
    str = str.replace(/\//g, '-');
    return '\\\\.\\pipe\\' + str;
  } else {
    return str;
  }
}
function cleanPipeName ( str ) { if ( process . platform === 'win32' && ! str . startsWith ( '\\\\.\\pipe\\' ) ) { str = str . replace ( / ^\/ / , '' ) ; str = str . replace ( / \/ / g , '-' ) ; return '\\\\.\\pipe\\' + str ; } else { return str ; } }
windows sucks, so we have handle windows-type of socket-paths
@link https://gist.github.com/domenic/2790533#gistcomment-331356
windows sucks so we have handle windows - type of socket - paths