import * as metavascript from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";
ReservedVariables | variable names whose values can be overridden in the output |
FALSE | a short expression which is equal to |
INFINITY | a short expression which is equal to |
INLINE_EVENT_ARG_NAME | the argument name for inline event |
NOTHING | a short expression to express "nothing" |
TRUE | a short expression which is equal to |
UNDEFINED | a short expression which is equal to |
abortIf | early return when the condition is true |
add | addition(s) |
and | logical AND(s) |
assign | set a value to one or several variable(s) |
band | bitwise AND(s) |
bnot | bitwise NOT |
bor | bitwise OR(s) |
castBoolean | convert a value to boolean type |
castInt | convert a value to integer |
castNumber | convert a value to number type |
checkIfArray | a short expression to test if a value is an |
checkIfFunction | a short expression to test if a value is a |
checkIfNumber | a short expression to test if a value is a |
checkIfString | a short expression to test if a value is a |
checkIfTextNode | a short expression to test if a value is a |
createActionDispatch | helper to create the |
decrement | decrement a variable |
defineFunc | declare a function |
div | division(s) |
dynamicProp | access to a property value by dynamic key |
element | generates a HTML Element |
execFunc | execute a function |
expressions | isolate expressions with commas (,) |
font | helper to generate a CSS font value |
formatStyle | format style in CSS format |
formatStylesheet | generates a CSS Stylesheet ready to be inserted in a Style tag (or nested) |
funcConstructor | Function constructor |
generateTmpVarName | temporary variable name generator |
group | container for arbitrary expressions |
htmlDoctype | helper to generate the HTML Doctype and the html tag |
ifElse | ternary condition |
ifThen | statement condition |
increment | increment a variable |
incrementInnerHtml | increment the innerHTML of an Element |
incrementOuterHtml | append some HTML to an Element |
initVariables | generates statements of variable initializations with provided values |
isDifferent | different comparison(s) |
isEqual | equal comparison(s) |
isGreater | greater than comparison(s) |
isLess | less than comparison(s) |
leftShift | left shift(s) |
List | put values in an array |
loadPublicFiles | utility function to copy all files from a folder to the Web App source code bundle folder |
loop | for loop |
manifestLink | helper to generate the HTML Element that link your web manifest |
minus | negate a value |
mod | modulo(s) |
mul | multiplication(s) |
not | logical NOT |
or | logical OR(s) |
output | return a value |
pow | power(s) |
prop | access to a property value by static key |
provideTmpVarNames | returns the inputted variable collection filled with temporary names in values |
Record | put keys and values in an object |
registerServiceWorker | helper to generate the function to register your service worker |
replaceAllTmpVarNames | post process function to replace all temporary variables names by the shortest names possible, the most used ones are the shortest (1 character) |
rightShift | right shift(s) |
round | round a float number |
setInnerHtml | set the innerHTML of an Element |
setOuterHtml | set the outerHTML of an Element |
statements | isolate statements with semicolons (;) |
sub | subtraction(s) |
swapElements | swap 2 HTML Element positions |
templateLiteral | String template literal |
Text | stringify a value, by adding quotes around it |
titleTag | helper to generate the title tag |
viewportMeta | helper to generate the viewport meta tag |
writeHtmlBundle | utility function to write a Web App source code in a file |
xor | bitwise XOR(s) |
ActionBase | an interface to extends for typed actions related to the State Mutator pattern |