warframe-worldstate-parser
Version:
An Open parser for Warframe's Worldstate in Javascript
7 lines (6 loc) • 405 B
JavaScript
//#region lib/supporting/ImgCdn.ts
const cdn = (path) => `https://cdn.warframestat.us/genesis/${path}`;
const wfCdn = (path) => `https://cdn.warframestat.us/img/${path}`;
const deProxy = (url) => url.replace("https://forums.warframe.com/applications/core/interface/imageproxy/imageproxy.php?img=", "").replace(/&key=\w*/gi, "").replace("http://", "https://");
//#endregion
export { cdn, deProxy, wfCdn };