melq
Version:
Quantum-secure chat network with ML-KEM-768 encryption and host-based architecture
13 lines (10 loc) • 426 B
JavaScript
import { fileURLToPath, pathToFileURL } from 'url';
import { dirname, join } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Import and run the main application
const appPath = join(__dirname, '..', 'src', 'index.js');
// Convert path to file URL for cross-platform compatibility
const appURL = pathToFileURL(appPath).href;
await import(appURL);