开发者社区> 镜像站> NPM> resolve-git-remote
resolve-git-remote
Resolves the remote url of the local git repository in the current folder.
Last updated 5 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resolve-git-remote 
SYNC missed versions from official npm registry.

resolve-git-remote build status

Resolves the remote url of the local git repository in the current folder.

npm install resolve-git-remote
var remote = require('resolve-git-remote');

remote(function (err, remote) {
  // err will be set if no remote was found
  console.log(remote);  // => 'thlorenz/resolve-git-remote'
});

Disclaimer

Code lifted from travisify.

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

3 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)