tinify-client
Version:
A CLI to compress your images not only intelligently but also to the EXTREME!
10 lines (9 loc) • 434 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRequest = void 0;
const http_1 = __importDefault(require("http"));
const https_1 = __importDefault(require("https"));
exports.getRequest = (url) => /https:\/\//.test(url) ? https_1.default : http_1.default;