formatjs

JavaScript date format tester.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
formatjs
400.1.112 years ago12 years agoMinified + gzip package size for formatjs in KB

Readme

formatjs
JavaScript date format tester. Build Status

Getting Started

On the server

Install the module with: npm install formatjs ```javascript var formatjs = require('./formatjs'); formatjs.test('12/04', 'YYYY/MM'); // false formatjs.test('2012/04', 'YYYY/MM'); // true ```

In the browser

Download the production versionmin or the development versionmax. In your web page: ```html ``` In your web page using AMD loader: ```html ```

Contributing

Install nodejs.
Install coffee-script with: npm install -g coffee-script.
Install dependencies with: npm install.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test your code using grunt. Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!

License

Copyright (c) 2012 nowamasa Licensed under the MIT license.