mirror of
https://github.com/CloakHQ/CloakBrowser.git
synced 2026-06-23 11:41:46 +02:00
- Binary downloads now served from CloakHQ/cloakbrowser releases (chromium-v* tags) - Auto-update: background version check on launch, downloads newer binary for next use - Graceful error on macOS/Windows (Linux-only binaries for now) - Rate-limited (1hr), opt-out via CLOAKBROWSER_AUTO_UPDATE=false - Add release-binary.yml workflow for anonymous binary releases
29 lines
767 B
TypeScript
29 lines
767 B
TypeScript
/**
|
|
* CloakBrowser — Stealth Chromium for Node.js
|
|
*
|
|
* Default export uses Playwright. For Puppeteer, import from 'cloakbrowser/puppeteer'.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* // Playwright (default)
|
|
* import { launch } from 'cloakbrowser';
|
|
* const browser = await launch();
|
|
*
|
|
* // Puppeteer
|
|
* import { launch } from 'cloakbrowser/puppeteer';
|
|
* const browser = await launch();
|
|
* ```
|
|
*/
|
|
|
|
// Launch functions (Playwright API)
|
|
export { launch, launchContext } from "./playwright.js";
|
|
|
|
// Binary management
|
|
export { ensureBinary, clearCache, binaryInfo, checkForUpdate } from "./download.js";
|
|
|
|
// Config
|
|
export { CHROMIUM_VERSION, getDefaultStealthArgs } from "./config.js";
|
|
|
|
// Types
|
|
export type { LaunchOptions, LaunchContextOptions, BinaryInfo } from "./types.js";
|