Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nodesvn with all npm packages installed. Try it out:

var nodesvn = require("nodesvn")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nodesvn v0.1.7

Node.JS bindings to interacting with a Subversion (SVN) repository. Written in C++, this binding interacts directly with the SVN libraries to provide quick, easy access to your Subversion repositories

NodeJS SVN bindings

This module is SVN bindings for NodeJS. You can use this module to interact with SVN within your NodeJS project.


Installation of this module is simple. In the root directory

node-waf configure build install


Filesystem File Contents

To get the contents of a file directly from the Subversion filesystem (using svn_fs):

SVN = require('nodesvn').SVN;
client = new SVN();'/path/to/svn/filesystem')
file_contents = client.file_contents('path_to_file_in_filesystem')

cat file

To get the contents of the file, as you might if you don't have direct access to the file system (e.g. through your SVN client on your OS, using svn_ra) use cat

SVN = require('nodesvn').SVN
client = new SVN();'type://path/to/repository/file')

Future Developments

This library was initially developed for a specific purpose, however it will be developed further. If you would like to submit patches, please feel free to send us pull requests.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free