UNPKG

chrome-cookie-extractor

Version:

Extract and decrypt Chrome cookies with curl integration - includes auth-curl command for authenticated requests

28 lines 765 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Factory = void 0; const iostreams_1 = require("./iostreams"); const extractor_1 = require("./extractor"); class Factory { constructor() { this._ioStreams = null; this._extractor = null; } getIOStreams() { if (!this._ioStreams) { this._ioStreams = new iostreams_1.IOStreams(); } return this._ioStreams; } getExtractor() { if (!this._extractor) { this._extractor = new extractor_1.ChromeCookieExtractor(); } return this._extractor; } canPrompt() { return this.getIOStreams().canPrompt(); } } exports.Factory = Factory; //# sourceMappingURL=factory.js.map