program-lang-console-template
v1.0.0
Published
Copyright (c) 2022 by Tran Tuan Minh. All rights reserved <br> Protected by DMCA.COM <br> **DO NOT** copy as **ANY** formality<br> <a href="//www.dmca.com/Protection/Status.aspx?ID=e144152a-d34d-4a14-81e5-385c60278379" title="DMCA.com Protection Status" c
Downloads
2
Readme
Copyight
Copyright (c) 2022 by Tran Tuan Minh. All rights reserved Protected by DMCA.COM DO NOT copy as ANY formality
About
Welcome to TConsole Standard console Our team ready for TCompiler (future). Thanks for use mailto:[email protected] - Contact us
Some basic command
In programming, though it's graphics or no then we still need print something to console/screen. And here is some example
logPrint.send(text)
logPrint.warn(warn)
(display as yellow)
logPrint.error(error)
(display as red)
Math
In TConsole, math is easiler:
mathAdd(li, i)
Addtion
mathSub(li, i)
Subraction
mathMul(li, i)
Multiply
mathDiv(li, i)
Division
Error, try, catch
In sometimes, we need errors. Like in JS, we have Try, Catch and createErr (another version of throw)
Everything still apply like in JS, except createErr
createErr.newError(error) // replace error with your error text
Module
Modul instead of Module, just replace name
Require/read folder
In TConsole, we using: requiFile(file) // replace file with your file
Read folder? readFolderSync(dir)
or readFolder(dir)
Config
Process: proc
Techinal Infomation: proc.proc.techinalInfomation
Module: proc.loadedModules
Process On: proc.on
Environment: proc.env
Info
Info: info
Others/Useless
Sleep: sleepyMode(ms)