UNPKG

@typecad/typecad

Version:

🤖programmatically 💥create 🛰️hardware

1 lines 1.55 kB
import a7_0x20fd43 from'chalk';const DEBUG_ENABLED=Boolean(process['env']['TYPECAD_DEBUG']&&process['env'][a7_0x3faa4e(-0x33c,-0x33e)]==='1');function a7_0x3faa4e(_0x503591,_0x49917f){return a7_0x540e(_0x49917f- -0x33e,_0x503591);}const QUIET_ENABLED=Boolean(process[a7_0x3faa4e(-0x33c,-0x33d)]['TYPECAD_QUIET']&&process['env']['TYPECAD_QUIET']==='1');function a7_0x540e(_0x2964c7,_0x540eb4){const _0x10ab88=a7_0x2964();return a7_0x540e=function(_0x5a7748,_0x5afa94){_0x5a7748=_0x5a7748-0x0;let _0x1da560=_0x10ab88[_0x5a7748];return _0x1da560;},a7_0x540e(_0x2964c7,_0x540eb4);}export function debug(..._0x3c6d24){function _0x4dbdc8(_0x254a81,_0x373d47){return a7_0x540e(_0x254a81-0x6b,_0x373d47);}DEBUG_ENABLED&&!QUIET_ENABLED&&(console[_0x4dbdc8(0x6d,0x6f)](..._0x3c6d24),process['stdout']['write'](''));}export function info(..._0x1380e6){function _0x54a7ef(_0x26deed,_0x3ac92c){return a7_0x540e(_0x26deed- -0x6,_0x3ac92c);}DEBUG_ENABLED&&!QUIET_ENABLED&&(console['info'](..._0x1380e6),process[_0x54a7ef(-0x3,-0x1)][_0x54a7ef(-0x2,0x0)](''));}export function warn(..._0x5514c6){function _0xadd3aa(_0x1af022,_0x5b29fc){return a7_0x540e(_0x5b29fc- -0x138,_0x1af022);}console['warn'](a7_0x20fd43[_0xadd3aa(-0x130,-0x133)](..._0x5514c6));}export function error(..._0xdb8318){console['error'](a7_0x20fd43['red'](..._0xdb8318));}export default{'debug':debug,'info':info,'warn':warn,'error':error};function a7_0x2964(){const _0x2f8404=['TYPECAD_DEBUG','env','log','stdout','write','yellow'];a7_0x2964=function(){return _0x2f8404;};return a7_0x2964();}