program-lang-console-template

1.0.0 • Public • Published

Copyight

Copyright (c) 2022 by Tran Tuan Minh. All rights reserved
Protected by DMCA.COM
DO NOT copy as ANY formality
DMCA.com Protection Status

About

Welcome to TConsole Standard console
Our team ready for TCompiler (future). Thanks for use
mailto: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)

Readme

Keywords

none

Package Sidebar

Install

npm i program-lang-console-template

Weekly Downloads

1

Version

1.0.0

License

UNLICENSED

Unpacked Size

440 kB

Total Files

16

Last publish

Collaborators

  • tuanminhdev