UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

25 lines (21 loc) 569 B
import { isFancyEnvironment } from '../lib/utils'; import minimist from 'minimist'; import { resolve } from 'path'; /** * If we are not on a fancy TTY, just show a barebone message * without fancy emoji, centering, fetching data, etc. */ const defaultCmd = (isFancyEnvironment()) ? 'rich' : 'plain'; const argv = minimist(process.argv.slice(2), { alias: { help: 'h' } }); let cmd; if (argv.help) { cmd = 'help' } else { cmd = argv.plain ? 'plain' : defaultCmd; } const bin = resolve(__dirname, `./postinstall-${cmd}.js`); require(bin, 'may-exclude');