node-cooper - v0.2.0
    Preparing search index...

    Interface LoadOptions

    interface LoadOptions {
        cache?: boolean;
        dotenv?: boolean;
        dotenvDir?: string;
        dotenvEnv?: string | null;
        dotenvFiles?: string[];
        dotenvOverride?: boolean;
        env?: Record<string, string>;
        file?: string;
        importSchemes?: Record<string, ImportSchemeFn>;
        modules?: Record<string, unknown> | Map<string, unknown>;
        resolvers?: Record<string, ResolverFn> | Map<string, ResolverFn>;
        root?: string;
        tags?: Record<string, TagFn> | Map<string, TagFn>;
        watchEnv?: boolean;
    }
    Index
    cache?: boolean

    loadFile only: use the cache (default true)

    dotenv?: boolean

    load .env files (default true); see Dotenv

    dotenvDir?: string

    the directory .env files are read from, and the base of a relative dotenvFiles entry (default: the project root, the nearest package.json above process.cwd())

    dotenvEnv?: string | null

    the <env> in .env.<env> (default COOPER_ENV)

    dotenvFiles?: string[]

    replaces the default .env file list

    dotenvOverride?: boolean

    let .env files outrank process.env (default false)

    env?: Record<string, string>

    an override layer for ${...}, on top of process.env and .env files (not a replacement for them)

    file?: string

    loadString only: the path the source came from, for private-variable scoping and import-cycle detection

    importSchemes?: Record<string, ImportSchemeFn>

    one loader per import "scheme://..."

    modules?: Record<string, unknown> | Map<string, unknown>

    what each !module("Name") means (CASC.md §7.5), by the name exactly as written; a name it does not hold is a load error

    resolvers?: Record<string, ResolverFn> | Map<string, ResolverFn>

    one function per !{name:...}

    root?: string

    directory a bare import resolves against; loadFile uses the file's own directory, loadString process.cwd()

    tags?: Record<string, TagFn> | Map<string, TagFn>

    one function per !Name(...) beyond the built-ins (a same-named entry replaces a built-in)

    watchEnv?: boolean

    loadFile only: poll the environment names this load read for changes (default: whether it read any)