https://github.com/pmagaz/deno-examples
Examples using Deno.
https://github.com/pmagaz/deno-examples
deno typescript
Last synced: 3 months ago
JSON representation
Examples using Deno.
- Host: GitHub
- URL: https://github.com/pmagaz/deno-examples
- Owner: pmagaz
- License: mit
- Created: 2020-02-28T10:40:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-29T08:16:28.000Z (over 5 years ago)
- Last Synced: 2025-01-24T13:41:27.410Z (4 months ago)
- Topics: deno, typescript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno Examples
[Deno](https://deno.land/) is a V8 based runtime which uses TypeScript as default language. This repository contains several examples of Deno use.
## Installing Deno
You can install deno using curl in Linux/Unix/osX machines or using other [tools](https://deno.land/).
```
curl -fsSL https://deno.land/x/install/install.sh | sudo DENO_INSTALL=/usr/local sh
```
You have to manually add Deno to your path in your .bash_profile.```
export DENO_INSTALL="/Users/userName/.local"
export PATH="$DENO_INSTALL/bin:$PATH"
```## Executing Examples
Examples are located in "examples" folder. To run examples just execute Deno binary as follows:
```
deno run examples/exampleName.ts
```
### Description- `helloWorld.ts` Hello World in Deno.
- `modules.ts` Deno's module system.
- `nameSpace.ts` Deno's name space.
- `testing.ts` Deno's testing suite.
- `importMap.ts` Example using import map feature.
- `fsWerite.ts` Example of --allow* flags.
- `httpServer.ts` Simple http server in Deno.## License
MIT