UNPKG

svninfo

Version:

A parser for svn info

25 lines 1.23 kB
{ "name": "svninfo", "version": "0.1.1", "description": "A parser for svn info", "keywords": [ "svn", "info", "svninfo" ], "author": { "name": "Stephen Remde", "email": "smremde@gmail.com" }, "repository": { "type": "git", "url": "git://github.com/smremde/node-svninfo.git" }, "devDependencies": { }, "dependencies": { }, "engines": { "node": ">=0.5.0" }, "main": "index", "readme": "A NodeJS module which will execute and parse the output of an svn info command.\n\nExample:\n```javascript\nvar svninfo = require('svninfo');\n\nsvninfo(function (err, res) {\n if (err)\n\n console.log(err); \n else\n console.log(res);\n});\n```\n\nOutput\n\n```\n{ rev: '230',\n url: 'https://example.com/svn/test/tree',\n last:\n { rev: '230',\n author: 'Steve',\n date: Tue Jun 18 2013 15:12:10 GMT+0100 (BST) },\n repository:\n { root: 'https://example.com/svn/test',\n id: 'bee123213-cddd-1234-abcd-12342323134' } }\n```\n\nAlternate syntax:\n\n```javascript\nvar svninfo = require('svninfo');\n\nsvninfo(callback);\nsvninfo(path, callback);\nsvninfo(options, callback);\n\nvar options = { \n cwd: 'path',\n timeout: 10\n}\n```" }