@bigcommerce/handlebars-v4

中文文档
4.8.1发布于 2026/03/27BSD-4-ClauseCommonJS近 30 天下载 1万

A simple wrapper for handlebars.js v4

此软件包已被标记为弃用

Deprecated: use an npm alias instead — "handlebars-v4": "npm:handlebars@4" in package.json.

原始使用文档

handlebars-v4

handlebars-v4 is a simple wrapper for the handlebars.js v4 template engine. This is required because we need to load v3 and v4 side-by-side to support both versions in paper-handlebars.

License

Copyright (c) 2015-2018, Bigcommerce Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by Bigcommerce Inc.
  4. Neither the name of Bigcommerce Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY BIGCOMMERCE INC ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BIGCOMMERCE INC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

版本与发布记录

@bigcommerce/handlebars-v4 共发布 8 个版本,首次发布于 2018/01/11;过去 12 个月发布了 2 个版本。

版本发布日期距今
4.8.1latest2026/03/277 个月前
4.8.02025/12/1210 个月前
4.7.82023/09/183 年前
4.7.62020/08/286 年前
4.5.32020/08/286 年前
4.5.22020/08/286 年前

关于 @bigcommerce/handlebars-v4 的常见问题

@bigcommerce/handlebars-v4 是什么?

A simple wrapper for handlebars.js v4注意:该包已被作者标记为弃用——Deprecated: use an npm alias instead — "handlebars-v4": "npm:handlebars@4" in package.json.

如何安装 @bigcommerce/handlebars-v4?

在项目目录运行 npm install @bigcommerce/handlebars-v4,或使用 pnpm add / yarn add / bun add。

@bigcommerce/handlebars-v4 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bigcommerce__handlebars-v4 是否存在。

@bigcommerce/handlebars-v4 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@bigcommerce/handlebars-v4 可以商用吗?

@bigcommerce/handlebars-v4 使用 BSD-4-Clause 许可。声明的许可为 BSD-4-Clause,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@bigcommerce/handlebars-v4 的下载量有多少?

根据 npm 官方下载统计,@bigcommerce/handlebars-v4 在 2026/10/08 – 2026/11/06 这 30 天内被下载 10,147 次,日均约 338 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bigcommerce/handlebars-v4 还在维护吗?

最新版本 4.8.1 发布于 2026/03/27(7 个月前);至今共发布 8 个版本,其中过去 12 个月发布了 2 个;首次发布于 2018/01/11。作者已将其标记为弃用,新项目建议寻找替代方案。