什么是 Deno?
Deno is a secure JavaScript and TypeScript runtime built on V8 and Rust, created by Ryan Dahl (the original creator of Node.js). It runs TypeScript natively without a compilation step, has secure-by-default sandboxing, and implements modern web standard APIs. Deno 2 brings full Node.js and npm compatibility.
🔥 Key Features of Deno
⚡ Blazing Fast
Built on V8 engine with Rust, offering excellent performance for JavaScript and TypeScript workloads.
🔒 Secure by Default
No file, network, or environment access unless explicitly granted. Fine-grained permission system.
📝 TypeScript Native
Run TypeScript files directly without any compilation step or configuration required.
🌐 Web Standard APIs
Implements browser-compatible APIs like fetch, WebSockets, and Streams out of the box.
🔄 Node.js Compatible
Deno 2 supports Node.js APIs and npm packages for seamless migration.
📦 Built-in Toolchain
Includes formatter, linter, test runner, bundler, and documentation generator.
📦 从 debian.griffo.io 安装
步骤 1:添加仓库
📋 可用的 Deno 软件包
debian.griffo.io provides two different Deno packages to suit different needs:
Full Deno runtime with all developer tooling including the REPL, LSP, formatter, linter, test runner, and bundler. This is the recommended choice for most developers.
Lightweight Deno runtime without the developer tooling. Ideal for production deployments where you only need to run compiled Deno programs with minimal overhead and a smaller binary footprint.
🔄 Managing Both Packages
You can install both deno and denort simultaneously:
Install both:
Check deno version:
Check denort:
步骤 2:安装 Deno
步骤 3:验证安装
🚀 Quick Start Examples
Run TypeScript directly:
Run with permissions:
Create a new project:
Run with npm packages:
Run tests:
Format and lint:
📦 Package Build Repository
Debian 软件包在此 GitHub 仓库中自动构建和维护:
- 🦕 deno-debian - Latest release builds
🔗 Related Packages
Enhance your development workflow with these complementary tools from debian.griffo.io:
- Bun JavaScript Runtime - Fast all-in-one JavaScript runtime
- Zig Programming Language - Systems programming language
- uv Python Manager - Fast Python package manager
- Ghostty Terminal - Fast terminal emulator