tout
Less than 1 minute
tout
Print a string to the STDOUT and set it's data-type
Description
Write parameters to STDOUT without a trailing new line character. Cast the output's data-type to the value of the first parameter.
Usage
tout: data-type "string to write" -> `<stdout>`
Examples
» tout: json { "Code": 404, "Message": "Page not found" } -> pretty
{
"Code": 404,
"Message": "Page not found"
}
Detail
tout
supports ANSI constants.
Unlike out
, tout
does not append a carriage return / line feed.
See Also
- ANSI Constants: Infixed constants that return ANSI escape sequences
(
(brace quote): Write a string to the STDOUT without new linecast
: Alters the data type of the previous function without altering it's outputerr
: Print a line to the STDERRformat
: Reformat one data-type into another data-typeout
: Print a string to the STDOUT with a trailing new line characterpretty
: Prettifies JSON to make it human readable