Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

255 B
Raw Blame
const TRUE_VALUES = new Set(['1', 'true', 'yes', 'on']);

export const CN_MIRROR_ENV = 'PAKE_USE_CN_MIRROR';

export function isCnMirrorEnabled(value = process.env[CN_MIRROR_ENV]): boolean {
  return TRUE_VALUES.has((value ?? '').trim().toLowerCase());
}