|
hace 2 años | |
---|---|---|
.. | ||
node_modules | hace 2 años | |
index.js | hace 2 años | |
license | hace 2 años | |
package.json | hace 2 años | |
readme.md | hace 2 años |
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