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

    Variable default

    default: {
        ByteSize: typeof ByteSize;
        Cache: {
            CHANNEL_ENV_CHANGED: string;
            CHANNEL_FILE_CHANGED: string;
            clear: () => void;
            configure: (options: { pollInterval?: number }) => void;
            invalidate: (file: string) => void;
            size: () => number;
        };
        CooperError: typeof CooperError;
        CooperFloat: typeof CooperFloat;
        DateTime: typeof DateTime;
        Dotenv: {
            env: (opts?: DotenvOptions) => Record<string, string>;
            parse: (
                contents: string,
                vars?: Record<string, string>,
            ) => Record<string, string>;
            projectRoot: (cwd?: string) => string;
        };
        Duration: typeof Duration;
        IPv4: typeof IPv4;
        IPv6: typeof IPv6;
        loadFile: (
            file: string,
            opts?: LoadOptions,
        ) => Promise<Record<string, any>>;
        loadFileSync: (file: string, opts?: LoadOptions) => Record<string, any>;
        loadString: (
            source: string,
            opts?: LoadOptions,
        ) => Promise<Record<string, any>>;
        loadStringSync: (source: string, opts?: LoadOptions) => Record<string, any>;
        LocalDate: typeof LocalDate;
        LocalDateTime: typeof LocalDateTime;
        LocalTime: typeof LocalTime;
        ModuleRef: typeof ModuleRef;
        Secret: typeof Secret;
        Tuple: typeof Tuple;
        version: string;
    }

    Type Declaration

    • ByteSize: typeof ByteSize
    • Cache: {
          CHANNEL_ENV_CHANGED: string;
          CHANNEL_FILE_CHANGED: string;
          clear: () => void;
          configure: (options: { pollInterval?: number }) => void;
          invalidate: (file: string) => void;
          size: () => number;
      }
      • CHANNEL_ENV_CHANGED: string
      • CHANNEL_FILE_CHANGED: string
      • clear: () => void
      • configure: (options: { pollInterval?: number }) => void
      • invalidate: (file: string) => void
      • size: () => number
    • CooperError: typeof CooperError
    • CooperFloat: typeof CooperFloat
    • DateTime: typeof DateTime
    • Dotenv: {
          env: (opts?: DotenvOptions) => Record<string, string>;
          parse: (
              contents: string,
              vars?: Record<string, string>,
          ) => Record<string, string>;
          projectRoot: (cwd?: string) => string;
      }
      • env: (opts?: DotenvOptions) => Record<string, string>
      • parse: (contents: string, vars?: Record<string, string>) => Record<string, string>
      • projectRoot: (cwd?: string) => string
    • Duration: typeof Duration
    • IPv4: typeof IPv4
    • IPv6: typeof IPv6
    • loadFile: (file: string, opts?: LoadOptions) => Promise<Record<string, any>>
    • loadFileSync: (file: string, opts?: LoadOptions) => Record<string, any>
    • loadString: (source: string, opts?: LoadOptions) => Promise<Record<string, any>>
    • loadStringSync: (source: string, opts?: LoadOptions) => Record<string, any>
    • LocalDate: typeof LocalDate
    • LocalDateTime: typeof LocalDateTime
    • LocalTime: typeof LocalTime
    • ModuleRef: typeof ModuleRef
    • Secret: typeof Secret
    • Tuple: typeof Tuple
    • version: string