Skip to content

manvirheer/clone-url-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clone-url-converter

A simple npm/yarn package for converting GitHub's Http/Https clone links to SSH format and vice versa.

Installation

To install the package, run the following command:

npm install clone-url-converter
yarn add clone-url-converter

Usage

Import the convert function from the package and use it to convert your GitHub clone links.

import { convert } from 'clone-url-converter';

const httpsLink = 'https://github.com/username/repo.git';
const sshLink = convert(httpsLink);
console.log(sshLink); // git@github.com:username/repo.git

The convert function will throw an error if the input is not a valid GitHub clone URL.

License

This package is licensed under the MIT License. See the LICENSE file for details.

Issues

If you encounter any issues or bugs, please report them in the GitHub issue tracker for this project.

Contributing

Contributions are welcome! If you have any improvements or bug fixes, please submit a pull request to the GitHub repository for this project.

For more information, see the GitHub repository: https://github.com/manvirdev/clone-url-converter

About

A simple npm/yarn package for converting GitHub's Http/Https clone links to SSH format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published