UNPKG

torotask

Version:

Task queue processing in NodeJS based on BullMQ and Redis

13 lines 546 B
/** * Reads environment variables starting with a given prefix, * removes the prefix, and converts the remaining key to camelCase. * * Example: * If prefix is 'REDIS_' and env var is REDIS_HOST=localhost, * it returns { host: 'localhost' }. * * @param prefix The prefix to look for (case-insensitive). * @returns A record with camelCased keys and their corresponding values. */ export declare function getConfigFromEnv(prefix: string, env?: Record<string, any>): Record<string, string>; //# sourceMappingURL=get-config-from-env.d.ts.map