Is there any nodejs project to wrap svn command? Such as: do update/commit change.
I've published a project named svn-spawn on npmjs.
It's a thin wrapper on svn command.
Usage example:
var Client = require('svn-spawn');
var client = new Client({
cwd: '/path to your svn working directory'
});
// svn up
client.update(function(err, data) {
console.log('updated');
});
// svn commit
client.commit('commit message here', function(err, data) {
console.log('done');
});
// any other svn commands
client.cmd(['revert', 'dir1', '--depth', 'infinity'], function(err, data) {
if (!err) {
console.log(data);
}
});