Comparing version 0.1.4 to 0.2.0
{ | ||
"name": "hg", | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"description": "A Mercurial client for Node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -50,4 +50,14 @@ Node-hg | ||
output.forEach(function(line) { | ||
console.log(line.body); | ||
console.log(hg.Parsers.text(output)); | ||
}); | ||
// Get command output as JSON | ||
hg.branches({"-T":"json"}, function(err, output) { | ||
if(err) { | ||
throw err; | ||
} | ||
var branches = hg.Parsers.json(output); | ||
branches.forEach(function(b) { | ||
console.log(b.branch + " - " + b.active); | ||
}); | ||
@@ -125,2 +135,2 @@ }); | ||
[MIT](http://opensource.org/licenses/MIT), No Attribution Required, Copyright 2013 [Jacob Gable](http://jacobgable.com) | ||
[MIT](http://opensource.org/licenses/MIT), No Attribution Required, Copyright 2013 [Jacob Gable](http://jacobgable.com) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38701
135