code: function getSafeConnection(cn) {
      if (typeof cn === 'object') {
          const copy = Object.assign({}, cn);
          if (typeof copy.password === 'string') {
              copy.password = copy.password.replace(/./g, '#');
          }
          if (typeof copy.connectionString === 'string') {
              copy.connectionString = maskPassword(copy.connectionString);
          }
          return copy;
      }
      return maskPassword(cn);
  }
docs: //////////////////////////////////////////////////////////// Converts a connection string or object into its safe copy: if password is present, it is masked with symbol '#'.