Skip to content

kaf-lamed-beyt/extract-repo-name

Repository files navigation

💡 repo-link-formatter

Lightweight utility function to extract the repository name from a GitHub repository URL


This is a npm package I built during DevFest Ibadan 2023 to illustrate the process of building JavaScript packages in 2023 and beyond.

How to use

First, install the package

npm install repo-link-formatter

When the installation is done, import it in your project like so:

import repoLinkFormatter from "repo-link-formatter";

const repositoryName = repoLinkFormatter("valid github url");
console.log(repositoryName);

About

Lightweight utility function to extract the repository name from a GitHub repository URL

Resources

License

Stars

Watchers

Forks

Packages

No packages published