qiwi/qorsproxy

View on GitHub
src/main/js/app.js

Summary

Maintainability
A
0 mins
Test Coverage
import { readFileSync } from 'node:fs'
import log from './log/index.js'
import Orchestrator from './orchestrator.js'

export const App = {
  main (argv) {
    const pkg = JSON.parse(readFileSync(new URL('../../../package.json', import.meta.url)))

    log.info(`Qorsproxy@${pkg.version} is loading...`)
    log.info(`argv=${JSON.stringify(argv)}`)

    return new Orchestrator(argv)
  },
};

export default App