9 lines
443 B
JavaScript
9 lines
443 B
JavaScript
import { DriverFactory } from './DriverFactory.mjs';
|
|
|
|
export class GenericDriverFacade {
|
|
constructor(driver = DriverFactory.create('Generico')){ this.driver = driver; }
|
|
async processTxt(text, services = {}){ return await this.driver.processText(text, services); }
|
|
async processFile(filePath, services = {}){ return await this.driver.processFileFromPath(filePath, services); }
|
|
exportCSV(pairs){ return this.driver.exportCSV(pairs); }
|
|
}
|