1.0.0 • Published 2 years ago

program-lang-console-template v1.0.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

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

tuanminhthom27022012@gmail.com - Contact us

Some basic command

Print

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)