1.5.1 • Published 2 years ago

@tv2media/command-transpiler v1.5.1

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

Command Transpiler

The project aims to create a flexible transpiler that transpiles commands from one protocol to another.

The transpiler is a set of rules, which consists of a pattern and a template. A pattern is used to distinguish incoming commands and extract data from them. Templates are used to convert the incoming command, by inserting and modifying the extracted data.

Examples

Pattern: ADD #{ number : amount }
Template: PLUS #{ amount }
Example: ADD 5 => PLUS 5

Pattern: ADDINC #{ number : amount | toInteger | inc 1 }
Template: PLUS #{ amount }
Example: ADDINC 5 => PLUS 6

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.2

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago