Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge "App for testing git URLs in Node.js"
Browse files Browse the repository at this point in the history
  • Loading branch information
mariash authored and Gerrit Code Review committed Sep 18, 2012
2 parents 74c72d8 + b17e96f commit 2eb7f0a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions node/node_git/app.js
@@ -0,0 +1,10 @@
var semver = require("semver");

require("http").createServer(function(req, res) {
if (semver.satisfies("1.2.3", "1.x || >=2.5.0 || 5.0.0 - 7.2.3")) {
res.end("hello from git");
}
else {
res.end("something is wrong");
}
}).listen(3000);
9 changes: 9 additions & 0 deletions node/node_git/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node/node_git/package.json
@@ -0,0 +1,7 @@
{
"name" : "node-git",
"version" : "0.0.1",
"dependencies" : {
"semver" : "git://github.com/isaacs/node-semver.git#ef7cb88c00"
}
}

0 comments on commit 2eb7f0a

Please sign in to comment.