🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

handlebars-data

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-data

Canonical Handlebars for Marketing Cloud Next helper catalog, built-in bindings, and unsupported-construct definitions for SFMC tooling

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

handlebars-data

Canonical data catalog for Handlebars for Marketing Cloud Next (MCN). This package is the single source of truth for MCN Handlebars language intelligence across the SFMC tooling suite (language server, ESLint plugin, Prettier plugin, and MCP server).

Marketing Cloud Next's templating engine is based on Handlebars.Net, not handlebars.js. The engine is locked down: you cannot register helpers, partials, decorators, or custom formatters. In exchange, MCN pre-bundles a fixed, release-gated helper catalog plus Salesforce-only data-access and personalization helpers and bindings.

Exports

ExportDescription
HELPERSArray of all 51 MCN Handlebars helper definitions, enriched with docUrl.
helperLookupMap of lowercase helper name → definition.
helperNamesSet of lowercase helper names.
CANONICAL_HELPERSOrdered list of canonical camelCase helper names.
getHelper(name)Case-insensitive helper lookup.
isHelper(name)Case-insensitive membership check.
getHelperMcnSince(name)API version a helper first shipped in, or null.
BUILTIN_BINDINGSThe three {!$...} built-in data-source bindings, each enriched with docUrl.
bindingLookup / bindingNames / isBuiltinBinding(name)Binding lookups.
UNSUPPORTED_CONSTRUCTSHandlebars constructs the MCN engine does not support (flagged as errors).
unsupportedByNodeTypeMap of @handlebars/parser AST node type → unsupported entries.

Helper metadata

Each helper carries:

  • name — canonical camelCase name.
  • category — one of Math, Comparison, String, Objects, Utility, Date & Time, Content, Personalization.
  • originhandlebars-builtin, mcn-helper, or mcn-platform.
  • helperTypeinline, block, or both.
  • mcnSince — MCN API version (65 = Winter '26, 67 = Summer '26).
  • params, returnType, description, docUrl.

License

MIT © Joern Berkefeld

Keywords

handlebars

FAQs

Package last updated on 04 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts