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