From: Tim Wood Date: Sat, 15 Oct 2011 01:07:33 +0000 (-0700) Subject: Adding to the docs. X-Git-Tag: 1.0.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2eccfd2da232069db4f08985b0ec6d3c8823cd;p=thirdparty%2Fmoment.git Adding to the docs. --- diff --git a/docs/index.html b/docs/index.html index 1fca916e6..19a7e36a6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -63,6 +63,41 @@
+ +

Where to get it

+ +

Github

+

+ Development Version (0.7.0) 20k Source + Comments +

+

+ Production Version (0.7.0) 2.2k Minified + Gzipped. +

+

You can also clone the project with Git by running: +

$ git clone git://github.com/timrwood/moment
+

+ +

npm

+
npm install moment
+ +

Where to use it

+

Moment was designed to work in both the browser and in NodeJS. All code will work in both environments. All unit tests are run in both environments.

+ +

In NodeJS

+

+

+var moment = require('moment');
+moment().add('hours', 1).fromNow(); // "1 hour ago"
+
+

+ +

In the browser

+

+

+<script src="moment.js"></script>
+moment().add('hours', 1).fromNow(); // "1 hour ago"
+
+