Lines 29-92javascript
31 return function (mod) {
32 if (mod && mod.__esModule) return mod;
34 if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35 __setModuleDefault(result, mod);
39Object.defineProperty(exports, "__esModule", { value: true });
40exports.printBanner = printBanner;
41exports.isAuthenticated = isAuthenticated;
42exports.ensureAuthenticated = ensureAuthenticated;
43exports.browserLogin = browserLogin;
44exports.manualLogin = manualLogin;
45exports.interactiveLogin = interactiveLogin;
46const readline = __importStar(require("readline"));
47const crypto = __importStar(require("crypto"));
48const credentials_1 = require("./credentials");
49const config_1 = require("./config");
50const DEFAULT_API_URL = 'https://api.firecrawl.dev';
51const WEB_URL = 'https://firecrawl.dev';
52const AUTH_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
53const POLL_INTERVAL_MS = 2000; // 2 seconds
57function promptInput(question) {
58 const rl = readline.createInterface({
60 output: process.stdout,
62 return new Promise((resolve) => {
63 rl.question(question, (answer) => {
65 resolve(answer.trim());
70 * Open URL in the default browser
72async function openBrowser(url) {
73 const { exec } = await Promise.resolve().then(() => __importStar(require('child_process')));
74 const platform = process.platform;
HighChild Process
Package source references child process execution.
dist/utils/auth.jsView on unpkg · L72 75 let command;
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/utils/auth.jsView on unpkg · L49 78 command = `open "${url}"`;
81 command = `start "" "${url}"`;
84 command = `xdg-open "${url}"`;
86 return new Promise((resolve, reject) => {
87 exec(command, (error) => {