jprichardson

jprichardson/node-date-tokens

Convenient date formatting for templates.

JavaScript
0
2
MIT License

date-tokens is a Node.js library that provides convenient date formatting for templates, particularly mustache-style templates like `{{date-year}}`. It's designed for developers who frequently work with date-based templates and need consistent two-digit formatting for months and other date components, solving JavaScript's 0-11 month indexing issue. The library offers two main functions: `dt` for dynamic date tokens and `dt.eval` for static string values, making it ideal for use with templating engines like Mustache.js, Hogan.js, or Handlebars.js.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

jprichardson's profile
jprichardson
2 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet