New abstract structure

Events for invoices get emitted in rooms
This commit is contained in:
2020-12-28 19:04:13 +01:00
parent 7f8ae69e2e
commit 0b3502d81f
14 changed files with 467 additions and 229 deletions

View File

@@ -0,0 +1,20 @@
import { readdirSync } from 'fs';
export class ProviderManager {
providerFilePath: string;
constructor(filePath: string) {
this.providerFilePath = filePath;
}
scan() {
const getDirectories = () =>
readdirSync(this.providerFilePath, { withFileTypes: true })
.filter(dirent => dirent.isDirectory())
.map(dirent => dirent.name)
console.log(getDirectories());
}
}