Skip to content

ericandrewlewis/git-or-svn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages