UNPKG

twdl

Version:

Downloads image and video tweets from Twitter

18 lines 703 B
import * as lib from '../../index.js'; import * as util from '../util.js'; import mergeOptions from 'merge-options'; export const command = 'download [urls..]'; export const aliases = ['d']; export const desc = 'Download media of tweet(s)'; export const builder = mergeOptions(lib.CliOptions, lib.DownloadOptions, lib.DownloadInfoOptions); export function handler(argv) { util.loadUrls(argv); util.checkUrls(argv); util.reportUrls(argv); util.applyCookie(argv); util.parseScrapers(argv); return lib.downloadUrls(argv.urls, argv) .catch((err) => util.debugError(argv.debug, err)) .finally(util.exitWithCode); } //# sourceMappingURL=download.js.map