|
пре 2 година | |
---|---|---|
.. | ||
node_modules | пре 2 година | |
index.js | пре 2 година | |
license | пре 2 година | |
package.json | пре 2 година | |
readme.md | пре 2 година |
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