Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from epeli/master

Package for Node.js
  • Loading branch information...
commit bf0d7ec50efe28605ff250421a3da2405ba191e8 2 parents 3b08bb6 + 4431b83
@arshaw authored
Showing with 20 additions and 3 deletions.
  1. +15 −0 package.json
  2. +5 −3 src/xdate.js
View
15 package.json
@@ -0,0 +1,15 @@
+{
+ "name" : "xdate"
+ , "version": "0.5.0"
+ , "author": "Adam Shaw"
+ , "homepage": "http://arshaw.com/xdate/"
+ , "description": "A Modern JavaScript Date Library"
+ , "bugs": {
+ "url": "https://github.com/arshaw/xdate/issues"
+ }
+ , "repository":
+ { "type": "git"
+ , "url": "https://github.com/arshaw/xdate.git"
+ }
+ , "main": "./src/xdate"
+}
View
8 src/xdate.js
@@ -1,4 +1,3 @@
-
/**
* @preserve XDate v@VERSION
* Docs & Licensing: http://arshaw.com/xdate/
@@ -794,7 +793,10 @@ function zeroPad(n, len) {
return n;
}
-
+// Export for Node.js
+if (typeof module !== 'undefined' && module.exports) {
+ module.exports = XDate;
+}
return XDate;
-})(Date, Math, Array);
+})(Date, Math, Array);
Please sign in to comment.
Something went wrong with that request. Please try again.