stock-bot/apps/stock/engine/index.js
2025-07-04 11:24:27 -04:00

21 lines
No EOL
489 B
JavaScript

/* tslint:disable */
/* eslint-disable */
const { existsSync } = require('fs')
const { join } = require('path')
let nativeBinding = null
// Try to load the native binding
try {
if (existsSync(join(__dirname, 'index.node'))) {
nativeBinding = require('./index.node')
} else {
throw new Error('index.node not found')
}
} catch (e) {
throw new Error(`Failed to load native binding: ${e.message}`)
}
// Export all bindings
module.exports = nativeBinding