Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

git-origin-url

wilmoore449MIT0.3.0

Retrieve the git remote origin URL of the current repo.

git, remote, origin, repo, repository, url

readme

git-origin-url

Build Status NPM version NPM downloads LICENSE

Retrieve the git remote origin URL of the current repo for Node.js.

Example

var origin = require('git-origin-url');

origin(function (err, url) {
  if (err) throw err;
  console.log(url);
});

//=> https://github.com/wilmoore/node-git-origin-url.git

Installation

$ npm install git-origin-url

Inspiration

License

MIT