index.js
function origin(fn) {
  'use strict';

  exec('git config --local --get remote.origin.url', function (errors, stdout, stderr) {
    var url = "";

    if (errors)  return fn(errors.stack, url);
    if (stderr)  return fn(stderr, url);

    url = trim.call(stdout);
    if (!url) return fn('Unable to find remote origin URL!', url);

    fn(null, url);
  });
}
function origin(fn) {
  'use strict';

  exec('git config --local --get remote.origin.url', function (errors, stdout, stderr) {
    var url = "";

    if (errors)  return fn(errors.stack, url);
    if (stderr)  return fn(stderr, url);

    url = trim.call(stdout);
    if (!url) return fn('Unable to find remote origin URL!', url);

    fn(null, url);
  });
}
function origin ( fn ) { 'use strict' ; exec ( 'git config --local --get remote.origin.url' , function ( errors , stdout , stderr ) { var url = "" ; if ( errors ) return fn ( errors . stack , url ) ; if ( stderr ) return fn ( stderr , url ) ; url = trim . call ( stdout ) ; if ( ! url ) return fn ( 'Unable to find remote origin URL!' , url ) ; fn ( null , url ) ; } ) ; }
Retrieve the git remote origin URL of the current repo.

@param {Function} fn
Callback to receive the result.
Retrieve the git remote origin URL of the current repo .