Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move files around to better conform to CommonJS, updates to package.json

  • Loading branch information...
commit 6d0276bf8fb8671465b6ee862bb4666fa55e0e5e 1 parent 1facef0
@driverdan authored
View
2  demo.js → example/demo.js
@@ -1,5 +1,5 @@
var sys = require('util');
-var XMLHttpRequest = require("./XMLHttpRequest").XMLHttpRequest;
+var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var xhr = new XMLHttpRequest();
View
0  XMLHttpRequest.js → lib/XMLHttpRequest.js
File renamed without changes
View
35 package.json
@@ -1,16 +1,23 @@
-{ "name" : "xmlhttprequest"
-, "description" : "XMLHttpRequest for Node"
-, "version" : "1.3.0"
-, "author" : "Dan DeFelippi"
-, "licenses" :
- [ { "type" : "MIT"
- , "url" : "http://creativecommons.org/licenses/MIT/"
- }
- ]
-, "repository" :
- { "type" : "git"
- , "url" : "git://github.com/driverdan/node-XMLHttpRequest.git"
+{
+ "name": "xmlhttprequest"
+, "description": "XMLHttpRequest for Node"
+, "version": "1.3.0"
+, "author": {
+ "name": "Dan DeFelippi"
+ , "url": "http://driverdan.com"
}
-, "engine" : [ "node >=0.4.0" ]
-, "main" : "./XMLHttpRequest.js"
+, "keywords" ["xhr", "ajax"]
+, "licenses": [{
+ "type": "MIT"
+ , "url": "http://creativecommons.org/licenses/MIT/"
+ }]
+, "repository": {
+ "type": "git"
+ , "url": "git://github.com/driverdan/node-XMLHttpRequest.git"
+ }
+, "bugs": "http://github.com/driverdan/node-XMLHttpRequest/issues"
+, "engines": {
+ "node": ">=0.4.0"
+ }
+, "main": "./lib/XMLHttpRequest.js"
}
Please sign in to comment.
Something went wrong with that request. Please try again.