Skip to content

This is nodejs program inorder to get the repo tags

License

Notifications You must be signed in to change notification settings

palashgupta98/repotags

Repository files navigation

repo-tags

Getting started

Want to know the version of the repo justing by entering the repo address as just vanilla javascript is used

npm install repo-tags

Usage

const tags = require("repo-tags");

async function tagsUsage(input) {
  try {
    const data = await tags(input);

    return data;
  } catch (error) {
    return new Error(error);
  }
}

tagsUsage("https://github.com/elastic/elasticsearch-js")
  .then(e=>console.log(e))  //arrays of the version of the elasticsearch
  .catch(e=>console.log(e));

You can also use with Tosemver to sanitize it 😄

Want to contribute do not hesitate to send the pull request

About

This is nodejs program inorder to get the repo tags

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published