1.0.0 • Published 5 months ago

extract-repo-name v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

💡 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);
1.0.0

5 months ago