UNPKG

hamlib

Version:

Node.js wrapper for hamlib radio control library

14 lines (11 loc) 391 B
import { createRequire } from 'module'; import { fileURLToPath } from 'url'; import path from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const require = createRequire(import.meta.url); // Import the CommonJS module const { HamLib } = require('./index.js'); // Export for ES modules export { HamLib }; export default { HamLib };