date-utils

Date add-ons for Node.js

Date-Utils: Polyfills for the Date object

NOTE

Version 2 Feature and Changes discussion is being held at https://github.com/JerrySievert/node-date-utils/issues/37

In a nutshell

  • Micro-Framework adding missing functionality to the Date object
  • Useable as a polyfill in the browser
  • Useable as a polyfill in Node.js
  • Works in CouchDB

Using within a Browser

<script type="text/javascript" src="date-utils.min.js"></script>

Using with Node.js

$ npm install date-utils

require('date-utils');

Note: This did not work in the REPLbefore Node.js 0.6due to how Node.jshandles context in the REPL.

Changing Languages

require('date-utils').language("es")

Supported languages:

  • Spanish - "es"
  • French - "fr"
  • Portuguese Brazilian - "pt-BR"

Documentation

Documentation (nearing completion) can be found at https://jerrysievert.github.io/date-utils

Development

Make sure you have gulpinstalled (npm install gulp -g). After that hit npm installto get the dependencies. Finally, hit gulp. This will build the library initially. If you make changes to the library, it will compile the minified version automatically.

Testing

$ npm test

Complexity and Minification

$ gulp

HomePage

https://jerrysievert.github.io/date-utils/

Repository

http://github.com/JerrySievert/date-utils.git


上一篇:gulp-complexity
下一篇:set-prototype-of

相关推荐

官方社区

扫码加入 JavaScript 社区