JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q63089F
  • License MIT

SVN interface for js

Package Exports

  • svn
  • svn/src/svn.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SVN Handles for node. I got tired of all the spawn() calls needed to run our custom Continuous Integration server.

Usage

npm install svn

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);
  });
})