F♭ (pronounced F-flat) is a toy language.
args
-> [str*]
Returns an array containing of command line arguments passed when the process was launched
println
a ->
Prints the value followed by (newline)
print
a ->
Prints the value
exit
->
terminate the process synchronously with an a status code
rand-u32
-> x
Generates cryptographically strong pseudo-random with a givennumber of bytes to generate
dirname
str₁ -> str₂
returns the directory name of a path, similar to the Unix dirname command. See https://nodejs.org/api/path.html#path_path_dirname_path
path-join
[ str* ] -> str
joins all given path segments together using the platform specific separator as a delimiter See https://nodejs.org/api/path.html#path_path_join_paths
resolve
str₁ -> str₂
returns a URL href releative to the current base
exists
str -> bool
Returns true if the file exists, false otherwise.
read
str₁ -> str₂
Pushes the content of a file as a utf8 string
cwd
-> str
Pushes the current working directory
get-env
str₁ -> str₂
Gets a environment variable