Coder Social home page Coder Social logo

remote-git-tags's Introduction

remote-git-tags Build Status

Get tags from a remote git repo

Like git ls-remote, which doesn't require cloning the repo, but this is 100% JavaScript, meaning no dependency on the Git binary.

Really just some minor glue to @chrisdickinson's awesome work on reimplementing Git in JavaScript.

I'm using this successfully against GitHub repos, but the underlaying modules are not that actively maintained, so I wouldn't recommend using this for production critical code.

Install

$ npm install --save remote-git-tags

Usage

const remoteGitTags = require('remote-git-tags');

remoteGitTags('github.com/sindresorhus/remote-git-tags').then(tags => {
	console.log(tags);
	//=> Map {'v1.0.0' => '69e308412e2a5cffa692951f0274091ef23e0e32'}
});

API

remoteGitTags(url)

Returns a Promise<Map> with the Git tags as keys and their commit SHA as values.

url

Type: string

Git repo URL.

License

MIT © Sindre Sorhus

remote-git-tags's People

Contributors

sindresorhus avatar

Watchers

James Cloos avatar Jeremiah Senkpiel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.