pixalynx/usb3-hub-10g
A USB 3.2 Gen 2 six-port hub board with USB-C PD power input, regulated 5 V/3.3 V/1.15 V rails, one upstream and four protected downstream USB-A/USB-C ports, SuperSpeed muxes, ESD protection, and controlled port power.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
lib/env.ts
import flags from "./flags.json"
/** True when the board is evaluated in a browser (the `tsci dev` preview), false under Bun (`tsci build` / `tsci check`).
* The dev preview skips the schematic by default: it adds a minute or more to every evaluation, far longer in the
* browser. Set lib/flags.json "devSchematic": true to see it live anyway. */
export const IN_BROWSER = typeof navigator !== "undefined" && /Mozilla/.test(navigator.userAgent ?? "")
/** The schematic is skipped in the dev preview (unless devSchematic) and when flags.schematic is false. */
export const SCHEMATIC_OFF = flags.schematic === false || (IN_BROWSER && !flags.devSchematic)