termfx

termfx project

  • termfx

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
termfx
001.0.1618 days ago4 months agoMinified + gzip package size for termfx in KB

Readme

Termfx JS
Currently work in progress project
!npm versionnpm-imagenpm-url !install sizeinstall-size-imageinstall-size-url
Table of contents:
Installation
npm install termfx
Usage
const termfx = require('termfx');
const delay = require('delay');
var registry = new termfx.New();

registry.RegisterVariable("foo", "bar")
registry.RegisterFunction("sleep", function(x){ await delay(x) });

var string =
`<<sleep(1000)>>
that was 1 second
<<sleep(5000)>>
that was 5 seconds
<<$foo>>`

registry.Execute(string, console.log)
Bugs
To fix termfx logging undefined at the start, you can add a clear function and clear the log first before starting.
License
Copyright Apache 2.0 License © 2022 Jeffthedev See LICENSE in root directory.