deno.land / std@0.167.0 / examples
This module contains small scripts that demonstrate use of Deno and its standard module.
You can run these examples using just their URL or install the example as an executable script which references the URL. (Think of installing as creating a bookmark to a program.)
deno run --allow-net https://deno.land/std/examples/echo_server.tsOr
deno install --allow-net https://deno.land/std/examples/echo_server.tsdeno install --allow-read -n deno_cat https://deno.land/std/examples/cat.ts
deno_cat file.txtA very useful command by Soheil Rashidi ported to Deno.
deno install --allow-read https://deno.land/std/examples/catj.ts
catj example.json
catj file1.json file2.json
echo example.json | catj -deno run --allow-net=deno.land https://deno.land/std/examples/curl.ts https://deno.land/export GIST_TOKEN=ABC # Generate at https://github.com/settings/tokens
deno install --allow-net --allow-env https://deno.land/std/examples/gist.ts
gist --title "Example gist 1" script.ts
gist --t "Example gist 2" script2.tsdeno run --allow-net --allow-read https://deno.land/std/examples/chat/server.tsOpen http://localhost:8080 on the browser.
Version Info