Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Package for Node.js #3

Merged
merged 3 commits into from

5 participants

@epeli

Cool looking lib and no DOM dependency. Deserves to be packaged for Node.js.

Can you publish this on npm?

http://npmjs.org/doc/publish.html

If you don't want to get into Node.js and npm I can do it too.

@tauren

I agree, this would be nice to add.

@davibe

+1
why isn't this happening ?

@arshaw arshaw merged commit bf0d7ec into arshaw:master
@arshaw
Owner

this was officially release in 0.6.0. also, it is part of the npm registry. thanks @epeli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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/
@@ -765,7 +764,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);
Something went wrong with that request. Please try again.