itch-dl
Version:
Bulk download games from itch.io - TypeScript implementation
20 lines (19 loc) • 683 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ITCH_BROWSER_TYPES = exports.ITCH_GAME_URL_REGEX = exports.ITCH_API = exports.ITCH_URL = exports.ITCH_BASE = void 0;
exports.ITCH_BASE = 'itch.io';
exports.ITCH_URL = `https://${exports.ITCH_BASE}`;
exports.ITCH_API = `https://api.${exports.ITCH_BASE}`;
// Extracts https://user.itch.io/name to {author: 'user', game: 'name'}
exports.ITCH_GAME_URL_REGEX = /^https:\/\/(?<author>[\w\d-_]+)\.itch\.io\/(?<game>[\w\d-_]+)$/;
exports.ITCH_BROWSER_TYPES = [
'games',
'tools',
'game-assets',
'comics',
'books',
'physical-games',
'soundtracks',
'game-mods',
'misc',
];