@crichmond1989/svn
v1.3.2
Published
SVN interface for js
Downloads
8
Readme
@crichmond1989/svn
NodeJS wrapper for SVN.
Preconditions
- SVN client installed
- SVN client in PATH
CentOS
yum install subversion
Mac OS X
brew options subversion
brew install (OPTIONS) subversion
Ubuntu
apt-get install subversion
Windows
Usage
npm install @crichmond1989/svn
Local and remote projects use the source
property.
Local
import Svn from "@crichmond1989/svn";
const client = new Svn({source: "C:/Repos/MyProject"});
const info = await client.info({ recursive: true });
const log = await client.log({ revision: 3003 });
Remote
import Svn from "@crichmond1989/svn";
const client = new Svn({source: "https://svn.code.sf.net/p/svnbook/source"});
const info = await client.info({ recursive: true });
const log = await client.log({ revision: 3003 });