Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

date-helper

0.1.2 • Public • Published

A first go at porting Rail's DateHelper to Coffeescript.

A very simple example usage.

DateHelper = require 'date-helper' DateHelper = DateHelper.DateHelper DateHelper.date_select('article', 'written_on', default: new Date('2008-3-5'), order: ['month', 'year']) ==> '\n\nJanuary\nFebruary\nMarch\nApril\nMay\nJune\nJuly\nAugust\nSeptember\nOctober\nNovember\nDecember\n\n\n2003\n2004\n2005\n2006\n2007\n2008\n2009\n2010\n2011\n2012\n2013\n\n'

Keywords

none

install

npm i date-helper

Downloadsweekly downloads

3

version

0.1.2

license

none

last publish

collaborators

  • avatar