0.1.1 • Published 8 years ago

git-or-svn v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Git or SVN

Test whether a folder path is part of a git or SVN repository.

var gitorsvn = require('git-or-svn');

gitorsvn( __dirname, function(gitorsvn) {
	if ( gitorsvn === 'git' ) {
		// It's a git repo!
	} else if ( gitorsvn === 'svn' ) {
		// It's an svn repo!
	} else {
		// It's neither!
	}
});
0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago