
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
helper-date
Advanced tools
Template helper for adding formatted dates with node-dateformat. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registered. Also compatible with verb, assemble and Template.
Template helper for adding formatted dates with node-dateformat. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registered. Also compatible with verb, assemble and Template.
See node-dateformat for all available options.
npm i helper-date --save
npm test
This should work with any engine, here are a few examples
template.helper('date', require('helper-date'));
assemble.helper('date', require('helper-date'));
verb.helper('date', require('helper-date'));
var handlebars = require('handlebars');
handlebars.registerHelper('date', require('helper-date'));
Handlebars:
{{date "MMMM DD, YYYY"}}
Lo-Dash or Underscore:
<%= date("MMMM DD, YYYY") %>
Verb (lo-dash, with special delimiters to avoid delimiter collision in documentation):
{%= date("MMMM DD, YYYY") %}
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert Released under the MIT license
This file was generated by verb on November 10, 2014.
FAQs
Format dates with date.js and moment.js. Uses date.js to parse human readable date phrases, and moment to format the rendered output. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registere
The npm package helper-date receives a total of 88,289 weekly downloads. As such, helper-date popularity was classified as popular.
We found that helper-date demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.