|
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
node_modules | %!s(int64=2) %!d(string=hai) anos | |
index.js | %!s(int64=2) %!d(string=hai) anos | |
license | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
readme.md | %!s(int64=2) %!d(string=hai) anos |
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