macOS
brew install duktapelocal Homebrew formula metadata
sudo port install duktapeMacPorts ports tree · devel/duktape/Portfile · 来源: api.github.com
安装
brew install duktapelocal Homebrew formula metadata
sudo port install duktapeMacPorts ports tree · devel/duktape/Portfile · 来源: api.github.com
sudo apk add duktapeAlpine Linux edge package indexes · duktape · 来源: dl-cdn.alpinelinux.org
sudo apt install duktapeDebian stable package indexes · duktape · 来源: deb.debian.org
sudo dnf install duktapeFedora Rawhide package metadata · duktape · 来源: dl.fedoraproject.org
nix profile install nixpkgs#duktapenixpkgs package indexes · pkgs/by-name/du/duktape/package.nix · 来源: api.github.com
sudo pacman -S duktapeArch Linux sync databases · duktape · 来源: geo.mirror.pkgbuild.com
sudo zypper install duktape-developenSUSE Tumbleweed package metadata · duktape-devel · 来源: download.opensuse.org
概览
Embeddable Javascript engine with compact footprint
历史
Duktape is an embeddable ECMAScript engine for C and C++ programs, designed around portability, compact footprint, and simple integration by adding the distributable C and header files to an application build. It is one of the better-known small JavaScript engines used when V8 or SpiderMonkey are too large or too embedding-heavy.
Duktape's public release archive starts in September 2013 with alpha releases focused on the public API, portability, and ES5.1 behavior. Version 1.0.0 arrived on October 26, 2014 as the stable baseline release.
The 1.x series added low-memory improvements, debugger support, typed arrays, duk_config.h, module.exports behavior, performance work, suspend/resume support, and continued maintenance. These releases established Duktape as a compact embeddable runtime rather than a browser engine.
Duktape 2.0.0 was released on January 2, 2017 with buffers, ES2015 improvements, performance work, and footprint changes. Later 2.x releases added API improvements, CBOR support, Unicode and portability updates, and maintenance fixes, with 2.7.0 released on February 19, 2022.
The upstream GitHub README notes that the master branch is undergoing incompatible changes for Duktape 3.x and that Duktape 2.x is tracked on the v2-maintenance branch. That split reflects a mature runtime balancing maintenance users with future internal changes.
Duktape's own site points to projects using it and to Stack Overflow community support, while its package presence spans Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Alpine, Ubuntu, and openSUSE-family packaging. Its GitHub repository also shows thousands of stars and a long development history, which is notable for a small embeddable engine.
Adoption tends to come from applications needing scripting, configuration logic, plugins, tests, or embedded automation in a C or C++ host. The guide emphasizes that Duktape makes few platform assumptions and leaves native bindings under application control, which made it attractive for constrained or custom environments.
Embedding usually means adding duktape.c, duktape.h, and duk_config.h to the host build, creating a heap, and using the C API to call ECMAScript from C or expose C functions to script code. The command-line duk executable is useful for quick testing, but the package's main value is as a library.
Duktape implements ES5/E5.1 with selected later semantics and partial ES2015/ES2016 features. Its feature set includes typed arrays, Node.js Buffer bindings, WHATWG Encoding API bindings, CBOR bindings, a debugger, Unicode support, coroutines, bytecode dump/load, finalization, and low-memory configuration options.
Duktape is significant because it occupies the small-engine end of the JavaScript runtime map. Package maintainers care about it as a portable C library with a permissive license, a stable release archive, and a footprint small enough for embedded systems.
It is also a useful point of comparison against QuickJS, MuJS, JerryScript, Espruino, and v7. Those engines all answer the same broad question - how small and embeddable can JavaScript be - with different tradeoffs around standards coverage, performance, licensing, and host integration.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
duk | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/svaarala/duktape
安装元数据
| 软件包键 | brew:duktape |
|---|---|
| 版本 | 2.7.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/duktape |
| 主页 | https://duktape.org |
| 仓库 | https://github.com/svaarala/duktape |
| 上游文档 | https://duktape.org/api.html |
| 许可证 | MIT |
| 源码归档 | https://github.com/svaarala/duktape/releases/download/v2.7.0/duktape-2.7.0.tar.xz |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | duktape |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
duktape 2.7.0-2+b2
embeddable Javascript engine
sudo apt install duktapeduktape-dev 2.7.0-2+b2
embeddable Javascript engine, development files
sudo apt install duktape-devlibduktape207 2.7.0-2+b2
embeddable Javascript engine, library
sudo apt install libduktape207duktape
nix profile install nixpkgs#duktapeduktape 2.7.0+tests-0ubuntu3
embeddable Javascript engine
sudo apt install duktapeduktape-dev 2.7.0+tests-0ubuntu3
embeddable Javascript engine, development files
sudo apt install duktape-devlibduktape207 2.7.0+tests-0ubuntu3
embeddable Javascript engine, library
sudo apt install libduktape207duktape 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint
sudo apk add duktapeduktape-dbg 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (debug symbols)
sudo apk add duktape-dbgduktape-dev 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (development files)
sudo apk add duktape-devduktape-doc 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (documentation)
sudo apk add duktape-docduktape-libs 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (libraries)
sudo apk add duktape-libsduktape 2.7.0-11.fc44
Embeddable Javascript engine
sudo dnf install duktapeduktape-devel 2.7.0-11.fc44
Development files for duktape
sudo dnf install duktape-develduktape 2.7.0-7
Embeddable Javascript engine
sudo pacman -S duktapeduktape-devel 2.7.0-3.7
Development files for duktape
sudo zypper install duktape-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.