@qnet/cli
Version:
A powerful command-line interface tool designed for managing and interacting with Quantex projects and services efficiently. Built with modern features and smooth integrations to streamline your workflow.
1 lines • 1.96 kB
JavaScript
const a0_0x29f068=a0_0x4599;function a0_0xdcac(){const _0x1a77a7=['20LBHyfC','19122GMxQci','dirname','255315XVprlJ','readFileSync','existsSync','resolve','17680310MWTOwE','unlinkSync','8wVZJsJ','470HmsMHO','206383MSNfAK','stringify','2959922mnzppf','parse','3640707fCRVfm','683462RUiJfQ'];a0_0xdcac=function(){return _0x1a77a7;};return a0_0xdcac();}(function(_0x1e69e5,_0x293a16){const _0x2cc75a=a0_0x4599,_0x559d3b=_0x1e69e5();while(!![]){try{const _0x59de85=-parseInt(_0x2cc75a(0x10a))/0x1+-parseInt(_0x2cc75a(0x10f))/0x2+parseInt(_0x2cc75a(0x102))/0x3*(-parseInt(_0x2cc75a(0x110))/0x4)+-parseInt(_0x2cc75a(0x109))/0x5*(-parseInt(_0x2cc75a(0x111))/0x6)+-parseInt(_0x2cc75a(0x10c))/0x7+parseInt(_0x2cc75a(0x108))/0x8*(-parseInt(_0x2cc75a(0x10e))/0x9)+parseInt(_0x2cc75a(0x106))/0xa;if(_0x59de85===_0x293a16)break;else _0x559d3b['push'](_0x559d3b['shift']());}catch(_0x15a54e){_0x559d3b['push'](_0x559d3b['shift']());}}}(a0_0xdcac,0x41169));import a0_0x37a7c1 from'fs';function a0_0x4599(_0x4bf3ea,_0x3f077b){const _0xdcacaf=a0_0xdcac();return a0_0x4599=function(_0x459974,_0x29d78a){_0x459974=_0x459974-0x102;let _0x35f7e9=_0xdcacaf[_0x459974];return _0x35f7e9;},a0_0x4599(_0x4bf3ea,_0x3f077b);}import a0_0x16350c from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a0_0x16350c[a0_0x29f068(0x112)](__filename),sessionPath=a0_0x16350c[a0_0x29f068(0x105)](__dirname,'../../.qnet-session.json');export function saveSession(_0x2a151e){const _0x3e107e=a0_0x29f068;a0_0x37a7c1['writeFileSync'](sessionPath,JSON[_0x3e107e(0x10b)](_0x2a151e,null,0x2));}export function loadSession(){const _0x2e15c6=a0_0x29f068;if(!a0_0x37a7c1[_0x2e15c6(0x104)](sessionPath))return null;const _0x389bb5=a0_0x37a7c1[_0x2e15c6(0x103)](sessionPath);return JSON[_0x2e15c6(0x10d)](_0x389bb5);}export function clearSession(){const _0x202e14=a0_0x29f068;if(a0_0x37a7c1[_0x202e14(0x104)](sessionPath))a0_0x37a7c1[_0x202e14(0x107)](sessionPath);}