# 使用 npm 安装 twig

查看 twig 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install npm:twig
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g twig
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:twig
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/twig>
- **版本:** 3.0.0
- **来源摘要:** JS port of the Twig templating language.
- **主页:** <https://github.com/twigjs/twig.js>
- **仓库:** <https://github.com/twigjs/twig.js>
- **上游文档:** <https://github.com/twigjs/twig.js>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://registry.npmjs.org/twig/-/twig-3.0.0.tgz>
- **问题跟踪器:** <https://github.com/twigjs/twig.js/issues>
- **发布时间:** 2026-03-26T19:43:50.935Z
- **最后更新:** 2026-03-26T19:43:50.935Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- twigjs (cli)
- twigjs (别名)

## 依赖

- @babel/runtime
- locutus
- minimatch
- walk

## 构建依赖

- @babel/core
- @babel/plugin-transform-runtime
- @babel/preset-env
- @eslint/js
- babel-loader
- eslint
- globals
- mocha
- path-browserify
- should
- should-sinon
- sinon
- terser-webpack-plugin
- tokenizer2
- webpack
- webpack-cli

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.0
- 管理器更新时间: 2026-03-26
- 本地数据: OK
- 上游仓库: https://github.com/twigjs/twig.js
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 twig 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 3.0.0
- **Version Count:** 65
- **Maintainers:** dave-irvine, justjohn, robloach, justafish, plepe, evgenius, willrowe
- **Author:** John Roepke
- **Publisher:** robloach
- **Engines:** Node: >=22
- **Integrity:** sha512-cMfYLWAgdW15B7L5wmanmga113e4phQmo3rk5EFuUrQd99g7I3ncxgynS38P01m4ZXBDSdMYUTV1g3A66/Y56Q==
- **Shasum:** b847ba9837f79154e8b935239fadc06a4260856a
- **Unpacked Size:** 1,179,326
- **File Count:** 0
- **Created At:** 2011-10-15T22:26:22.758Z
- **Latest Published At:** 2026-03-26T19:43:50.935Z
- **Modified At:** 2026-03-26T19:43:51.078Z


## 相关链接

- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [speedscope](https://pkg.so/zh-hans/npm/speedscope/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, control, developer, developer-tools, javascript.
- [ts-add-js-extension](https://pkg.so/zh-hans/npm/ts-add-js-extension/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, control, developer, developer-tools, javascript.
- [scp2](https://pkg.so/zh-hans/npm/scp2/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, control, developer, developer-tools, javascript.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
