UNPKG

twayback-player

Version:

a simple web interface to analyze html files from the OSINT tool twayback

25 lines (21 loc) 621 B
#!/usr/bin/env node const commandLine = require('commander'); const path = require('path'); const pkg = require('../package.json'); const twaybackplayer = require('../index'); const arg = process.argv; const homedir = require('os').homedir(); const dayjs = require('dayjs'); // options commandLine .version('twayback-player v' + pkg.version) .option('-p --path <path>', 'full path to twayback folder results') .parse(arg) const options = commandLine.opts(); if (options.path) { twaybackplayer.init(options.path) } else { console.log('missing argument.') commandLine.help() process.exit; }