@blockchaincommons/known-values - v1.0.0-beta.4
    Preparing search index...

    Class DirectoryConfig

    The directories the global registry loads registry files from, in order (a later directory replaces an earlier one by codepoint). The default is the one directory ~/.known-values; an empty configuration loads nothing and makes the global registry equal to a reference build without the directory-loading feature.

    Index
    • Parameters

      • paths: readonly string[] = []

        The directories, in order (none by default)

      Returns DirectoryConfig

      KnownValuesError InvalidParameter when paths is not an array of strings

    • get paths(): readonly string[]

      The directories, in order.

      Returns readonly string[]

    • ~/.known-values: the home directory is a non-empty HOME, else the account's home from the user database, else . (the reference's dirs::home_dir().unwrap_or(".")).

      Returns string

    • Appends a directory.

      Parameters

      • path: string

      Returns void

      KnownValuesError InvalidParameter when path is not a string