deno · v1.0 · 2026-07-20 · sha256 3f23a6608c74791d

deno v1.0A

Immutable. This exact content never changes and is served at /api/v1/blob/3f23a6608c74791d.

---
name: deno
description: Deno runtime operations.
license: MIT
metadata:
  author: vant
  version: "1.0"
---

# Deno

> Deno runtime operations.

---

## When To Use

- deno.json/deno.jsonc exists
- deno.lock present
- Scripts use deno

---

## What To Do

### 1. Common Commands

| Command | What |
|---------|------|
| deno init | Initialize project |
| deno run | Execute script |
| deno test | Run tests |
| deno add | Add dependency |
| deno task | Run task |
| deno fmt | Format code |
| deno lint | Lint code |

### 2. Add Dependencies

```bash
# JSR packages
deno add jsr:@std/path

# npm packages
deno add npm:react
```

### 3. Run with Permissions

```bash
deno run --allow-net --allow-read main.ts

# Test
deno test --allow-net --allow-read
```

### 4. Tasks

```bash
deno task dev    # Run dev task
deno task build # Run build task
```

---

## Output

```
## Deno

| Command | Status |
|---------|--------|
| Run | [PASS/FAIL] |
| Test | [n] passed |

### Dependencies
- [list]
```

---

**Role**: Deno Developer  
**Input**: deno scripts  
**Output**: Working code

> Secure JavaScript.