UNPKG

@virtualstate/app-history

Version:

Native JavaScript [app-history](https://github.com/WICG/app-history) implementation

16 lines (14 loc) 378 B
/* c8 ignore start */ import process from "./node-process"; export function getConfig(): Record<string, string> { return { ...getNodeConfig(), }; } function getNodeConfig(): Record<string, string> { if (typeof process === "undefined") return {}; return { FLAGS: process.env.FLAGS, ...JSON.parse(process.env.TEST_CONFIG ?? "{}") }; }