|
2 years ago | |
---|---|---|
.. | ||
node_modules | 2 years ago | |
index.js | 2 years ago | |
license | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
Get the remote origin url of a git repository
$ npm install --save git-remote-origin-url
const gitRemoteOriginUrl = require('git-remote-origin-url');
gitRemoteOriginUrl().then(url => {
console.log(url);
//=> 'git@github.com:sindresorhus/git-remote-origin-url.git'
});
Type: string
Default: process.cwd()
Working directory.
MIT © Sindre Sorhus