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