Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hbs-wasm

dymoo19ISC1.0.5TypeScript support: included

WASM handlebars compiler with minification

WASM, WebAssembly, template, html, mustache, handlebars, minify, minimize

readme

hbs-wasm

WASM handlebars template engine bindings, to be used with NodeJS

@param {string} handlebars template string
@param {any} context to render template
@param {boolean | undefined} minify (true by default)
@returns {string}

Usage:

  const { render } = require('hbs-wasm')

  const rendered = render('<h1>{{example}}<h1>', { example: 'this is my template' })