svn-get-revision

returns svn revision # from a specified directory. useful for CI when still using SVN.


License
MIT
Install
npm install svn-get-revision@1.0.0

Documentation

svn-get-revision

Simple pipeable revision getter for SVN

Simple command line wrapper around node-svn. Literally like 10 lines of code.

Example

svn-get-revision c:\location\of\your\working_copy > svn_latest_resision.txt

Now you have a txt file containing your latest revision. This can be ran at build time to get you the latest version information to be used in something like a package.json file to seed the version in your app. My use case was the fact that we still use SVN at work and I needed it to play nice with CI.