Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (12 sloc) 381 Bytes
title signature
Duration Format
npm install moment-duration-format

This is a plugin that will allow comprehensive formatting of Moment Durations.

For example,

moment.duration(123, "minutes").format("h:mm");
// "2:03"

The repository is located at github.com/jsmreese/moment-duration-format