Skip to content

tokio-js/tokio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokioJS

JavaScript's asynchronous runtime

Tools Included

  • Macros
    • Easy to create
    • Auto-added to global scope
    • Can be used cross-file
    • Used in 99% of the tools
  • Logging
    • Default Built-in Loggers (ConsoleLogger and IOLogger)
      • CoreLog
      • SAFE function caller tracer
      • rust bindings for logging EVERYTHING (W.I.P)
    • Fully Customizable Loggers
  • OOP
    • Structs
    • Templates
    • Builders
    • Advanced Contructors

Example (TS)

import tokiojs from "@tokio-js/tokio";
const { app, L } = tokiojs.load();

app._main$ = async function(args: string[]) {
  L._info$("Hello World")
};

app.run();

Installation

Command Line:

npm install tokiojs@https://github.com/tokio-js/tokio#build --save

Or add to your package.json:

{
  "dependencies": {
    "tokiojs": "github:tokio-js/tokio#build"
  }
}