Zealot/index.ts
Gregory Ballantine 51fe19f12c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Started rewriting project in TypeScript
2022-11-17 00:07:39 -05:00

12 lines
311 B
TypeScript

import fs from 'fs';
import toml from 'toml';
import Repository from './src/repository';
// load config file
const config = toml.parse(fs.readFileSync('./config/default.toml', 'utf-8'));
// create and initialize repository object
const repo = new Repository(config.transcoder.repository);
repo.initialize();