UNPKG

git-origin-url

Version:

Retrieve the git remote origin URL of the current repo.

11 lines (8 loc) 246 B
var test = require('tape'); var url = require('./index'); test('origin url', function (t) { url(function (err, url) { t.equal(url.replace(/^(git|https?):\/\//i, ''), "github.com/wilmoore/node-git-origin-url.git"); t.end(); }); });