Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/courajs/node-svn
Node.js handles for SVN
https://github.com/courajs/node-svn
Last synced: about 2 months ago
JSON representation
Node.js handles for SVN
- Host: GitHub
- URL: https://github.com/courajs/node-svn
- Owner: courajs
- Created: 2013-03-06T21:28:43.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-09-11T17:53:19.000Z (over 2 years ago)
- Last Synced: 2024-10-31T19:49:33.827Z (about 2 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 6
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
README
SVN Handles for node.
I got tired of all the spawn() calls needed to run our custom Continuous Integration server.This simply spawns processes using the svn cli, so `svn` must be installed and available via
the `PATH` of the Node.js process.Usage
------
`npm install svn`
```js
var SVN = require('svn');
var svn = new SVN('./working_copy');svn.get_remote(function(error, result){
console.log('remote is:', result);
});svn.log({limit: 5}, function(error, result){
console.log('The last 5 commit messages are:');
result.forEach(function(rev){
console.log(rev.message);
});
});svn.log({start: 4426, end:'HEAD'}, function(error, result){
console.log('Changes since revision 4426:');
result.forEach(function(rev){
console.log(rev.message);
});
})
```