UNPKG

@har-sdk/core

Version:

The base package can be used to import specification files (i.e. HAR, OAS and Postman Collection) and detect their type.

13 lines 356 B
import { JsonLoader } from './JsonLoader'; import { YamlLoader } from './YamlLoader'; export class LoaderFactory { getLoader(format) { switch (format) { case 'json': return new JsonLoader(); case 'yaml': return new YamlLoader(); } } } //# sourceMappingURL=LoaderFactory.js.map