forked from NickMarinade/cowsaydex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.min.js
1 lines (1 loc) · 3.85 KB
/
demo.min.js
1
const _0x1d37 = ['keys', 'cowsaid', 'map', 'file', 'accessSync', 'list', 'exit', 'verb', 'log', 'join', 'argv', 'includes', 'say', 'mkdirSync', '.txt', 'slice', 'I\x20cow\x20hard', 'substr', 'default', 'key', 'writeFileSync', 'cowsay', '\x20is\x20not\x20a\x20supported\x20verb,\x20the\x20cow\x20will\x20\x22say\x22', 'value', '\x20directory\x20---', 'filter', 'text', 'CONFG\x20OPTIONS\x0atext:\x22lorem\x20ipsum\x22\x20--\x20what\x20the\x20cow\x20should\x20say\x0a\x20\x20default\x20--\x20I\x20cow\x20hard\x0ae:\x22oo\x22\x20--\x20the\x20cow\x27s\x20eyes.\x0a\x20\x20not\x20all\x20cowfiles\x20have\x20customizable\x20eyes\x0a\x20\x202\x20characters\x20only\x20is\x20recommended\x0a\x20\x20default\x20--\x20\x22oo\x22\x0aT:\x22\x20\x20\x22\x20--\x20the\x20cow\x27s\x20tongue\x0a\x20\x20not\x20all\x20cowfiles\x20have\x20customizable\x20tongues\x0a\x20\x202\x20characters\x20only\x20is\x20recommended\x0a\x20\x20default\x20--\x20\x22\x20\x20\x22\x0af:\x22bees\x22\x20--\x20the\x20cowfile\x20to\x20render\x0a\x20\x20default\x20--\x20default\x0afile:fileName.txt\x20--\x20the\x20file\x20name\x20to\x20render\x20to\x0a\x20\x20default\x20--\x20(new\x20Date()).toJSON()\x20+\x20\x22.txt\x22\x0averb:\x22say\x22\x20--\x20does\x20the\x20cow\x20say\x20or\x20think?\x0a\x20\x20only\x20\x22say\x22\x20and\x20\x22think\x22\x20are\x20supported\x0a\x20\x20default\x20--\x20\x22say\x22\x0a\x0aFLAGS\x0a-h\x20--\x20prints\x20this\x20helpful\x20message\x0a-l\x20--\x20prints\x20all\x20possible\x20cows\x0aif\x20either\x20flag\x20is\x20passed\x20as\x20an\x20argument,\x20the\x20cow\x20will\x20not\x20render', '---\x20creating\x20./']; (function (_0x5b48ad, _0x1d37e4) { const _0x78889d = function (_0x2b20fd) { while (--_0x2b20fd) { _0x5b48ad['push'](_0x5b48ad['shift']()); } }; _0x78889d(++_0x1d37e4); }(_0x1d37, 0x1e3)); const _0x7888 = function (_0x5b48ad, _0x1d37e4) { _0x5b48ad = _0x5b48ad - 0x0; let _0x78889d = _0x1d37[_0x5b48ad]; return _0x78889d; }; const _0x295efd = require(_0x7888('0x2')); const _0x12604b = require('fs'); const _0x37b99c = _0x7888('0xb'); const _0x52b4b9 = [_0x7888('0x16'), 'think']; const _0x57b4aa = _0x7888('0x8'); const _0x286780 = process[_0x7888('0x14')][_0x7888('0x19')](0x2); if (_0x286780[_0x7888('0x15')]('-h')) { console[_0x7888('0x12')](_0x57b4aa); process[_0x7888('0x10')](0x0); } if (_0x286780[_0x7888('0x15')]('-l')) { _0x295efd[_0x7888('0xf')]((_0x47555f, _0xbef0f8) => { console[_0x7888('0x12')](_0xbef0f8[_0x7888('0x13')]('\x0a')); }); process[_0x7888('0x10')](0x0); } const _0xc27761 = { 'text': _0x7888('0x1a'), 'e': 'oo', 'T': '\x20\x20', 'f': _0x7888('0x1c'), 'file': new Date()['toJSON']() + _0x7888('0x18'), 'verb': _0x7888('0x16') }; const _0x593d87 = _0x286780[_0x7888('0x6')](_0x5affa9 => { const _0x1992cf = _0x5affa9['split']('='); const _0xc9d2c2 = _0x1992cf[0x0]; return Object[_0x7888('0xa')](_0xc27761)[_0x7888('0x15')](_0xc9d2c2); })[_0x7888('0xc')](_0x5dc713 => { const _0x7681f3 = _0x5dc713['indexOf']('='); const _0x2ccfaa = _0x5dc713[_0x7888('0x1b')](0x0, _0x7681f3); const _0x4638b9 = _0x5dc713[_0x7888('0x1b')](_0x7681f3 + 0x1); return { 'key': _0x2ccfaa, 'value': _0x4638b9 }; })['reduce']((_0x2f716a, _0x5cbe18) => { _0x2f716a[_0x5cbe18[_0x7888('0x0')]] = _0x5cbe18[_0x7888('0x4')]; return _0x2f716a; }, {}); if (!_0x52b4b9['includes'](_0x593d87[_0x7888('0x11')])) { console[_0x7888('0x12')](_0x593d87[_0x7888('0x11')] + _0x7888('0x3')); delete _0x593d87['verb']; } const _0x182c9c = Object['assign'](_0xc27761, _0x593d87); const _0xcb12e2 = _0x295efd[_0x182c9c['verb']]({ 'text': _0x182c9c[_0x7888('0x7')], 'e': _0x182c9c['e'], 'T': _0x182c9c['T'], 'f': _0x182c9c['f'] }); try { _0x12604b[_0x7888('0xe')]('./' + _0x37b99c); } catch (_0x3ee9a9) { console[_0x7888('0x12')](_0x7888('0x9') + _0x37b99c + _0x7888('0x5')); _0x12604b[_0x7888('0x17')]('./' + _0x37b99c); } console['log'](_0xcb12e2); _0x12604b[_0x7888('0x1')]('./' + _0x37b99c + '/' + _0x182c9c[_0x7888('0xd')], _0xcb12e2);