https://github.com/deno-library/example
A simple deno example
https://github.com/deno-library/example
deno example
Last synced: about 1 month ago
JSON representation
A simple deno example
- Host: GitHub
- URL: https://github.com/deno-library/example
- Owner: deno-library
- License: mit
- Created: 2020-06-14T03:01:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T02:31:28.000Z (almost 5 years ago)
- Last Synced: 2025-02-10T03:48:05.063Z (3 months ago)
- Topics: deno, example
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deno example
A simple deno example### native
```bash
deno run --allow-net --allow-write ./native/app.ts
```### use oak framework
```bash
deno run --allow-net --allow-write ./oak/app.ts
```### tip
```
deno 1.0.0
A secure JavaScript and TypeScript runtimeDocs: https://deno.land/std/manual.md
Modules: https://deno.land/std/ https://deno.land/x/
Bugs: https://github.com/denoland/deno/issuesTo start the REPL:
denoTo execute a script:
deno run https://deno.land/std/examples/welcome.tsTo evaluate code in the shell:
deno eval "console.log(30933 + 404)"USAGE:
deno [OPTIONS] [SUBCOMMAND]OPTIONS:
-h, --help Prints help information
-L, --log-level Set log level [possible values: debug, info]
-q, --quiet Suppress diagnostic output
-V, --version Prints version informationSUBCOMMANDS:
bundle Bundle module and dependencies into single file
cache Cache the dependencies
completions Generate shell completions
doc Show documentation for a module
eval Eval script
fmt Format source files
help Prints this message or the help of the given subcommand(s)
info Show info about cache or info related to source file
install Install script as an executable
repl Read Eval Print Loop
run Run a program given a filename or url to the module
test Run tests
types Print runtime TypeScript declarations
upgrade Upgrade deno executable to given versionENVIRONMENT VARIABLES:
DENO_DIR Set deno's base directory (defaults to $HOME/.deno)
DENO_INSTALL_ROOT Set deno install's output directory
(defaults to $HOME/.deno/bin)
NO_COLOR Set to disable color
HTTP_PROXY Proxy address for HTTP requests
(module downloads, fetch)
HTTPS_PROXY Same but for HTTPS
```