Cotal TypeScript packages
    Preparing search index...

    Function readCredsFile

    • Read a --creds file and check it before anything is dialed, so a missing, unreadable or malformed file is refused naming the file and what is wrong with it, rather than reaching a serving broker as an unreachable one. A file other accounts can read is still used, with a warning on stderr: the private-file rule refuses only the credentials Cotal keeps itself.

      Parameters

      • path: string
      • Optionaloptions: { malformedRemedy?: string }

      Returns string