svninfo

0.1.1 • Public • Published

node-svninfo

A NodeJS module which will execute and parse the output of an svn info command.

Example:

var svninfo = require('svninfo');
 
svninfo(function (err, res) {
  if (err)
    console.log(err);  
  else
    console.log(res);
});

Output

{ rev: '230',
  url: 'https://example.com/svn/test/tree',
  last:
   { rev: '230',
     author: 'Steve',
     date: Tue Jun 18 2013 15:12:10 GMT+0100 (BST) },
  repository:
   { root: 'https://example.com/svn/test',
     id: 'bee123213-cddd-1234-abcd-12342323134' } }

Alternate syntax:

var svninfo = require('svninfo');
 
svninfo(callback);
svninfo(path, callback);
svninfo(options, callback);
 
var options = { 
  cwd: 'path',
  timeout: 10
}
  
 

Readme

Keywords

none

Package Sidebar

Install

npm i svninfo

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • smremde