UNPKG

@budibase/handlebars-helpers

Version:

More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.

15 lines (12 loc) 344 B
const uuid = require('uuid'); const helpers = module.exports; /** * Generates a UUID, using the V4 method (identical to the browser crypto.randomUUID function). * * @return {String} A newly generated UUID. * @api public * @example {{ uuid }} -> f34ebc66-93bd-4f7c-b79b-92b5569138bc */ helpers.uuid = function() { return uuid.v4(); };