Example #1: Passing JSON as STDIN, unmolested, to the command line command and getting the result echo'd back.
The command is coded in Bun Javascript.
{
name: "John Doe",
age: 30,
city: "New York",
}
Example #2: Passing 2 parameters as arguments to the command line command and getting them both echo'd back.
The command is coded in Bun Javascript.
RESULT: hello world test arg with spaces and "doublequotes" and 'sinqle quotes'
Example #3: Passing JSON as STDIN, unmolested, to the command line command and getting the result echo'd back.
The command is coded in Zig and compiled to a Linux executable file.
{
"name": "John Doe",
"age": 30,
"city": "New York"
}Example #4: Calling Linux 'ls -alh' command.
total 932K
drwxrwxr-x 8 www-data www-data 4.0K Jun 10 02:43 .
drwxr-xr-x 32 www-data www-data 4.0K Dec 5 18:47 ..
-rw-r--r-- 1 www-data www-data 453 May 29 2025 biome.json
-rw-r--r-- 1 www-data www-data 13K May 30 2025 bun.lock
drwxr-xr-x 2 www-data www-data 4.0K Jun 12 17:57 config
drwxr-xr-x 23 www-data www-data 4.0K Jun 12 17:51 controllers
-rw-r--r-- 1 www-data www-data 819K Dec 5 20:35 debug.log
-rw-r--r-- 1 www-data www-data 388 May 29 2025 .gitignore
drwxr-xr-x 2 www-data www-data 4.0K Jun 13 10:50 models
drwxr-xr-x 103 www-data www-data 4.0K May 30 2025 node_modules
drwxr-xr-x 7 www-data www-data 4.0K May 28 2025 other
-rw-r--r-- 1 www-data www-data 436 May 30 2025 package.json
-rw-r--r-- 1 www-data www-data 23K May 29 2025 package-lock.json
-rw-r--r-- 1 www-data www-data 215 May 29 2025 README.md
-rwxr--r-- 1 www-data www-data 100 May 29 2025 restart
-rw-r--r-- 1 www-data www-data 5.9K Jun 10 02:43 server.js
-rw-r--r-- 1 www-data www-data 5.1K May 29 2025 server.js.OLD
drwxr-xr-x 23 www-data www-data 4.0K Jun 12 17:51 views