github-ssh-url
Make GitHub SSH URL from HTTPS URL or username/repository.
Example
//=> 'git@github.com:user/repo.git' //=> 'git@github.com:user/repo.git' //=> 'git@github.com:user/repo.git' //=> 'git@github.com:user/repo.git' sshUrl 'SSH url');//=> 'git@github.com:user/repo.git'
API
githubSshUrl(url)
githubSshUrl(user, repo)
Returns SSH URL.
CLI
github-ssh-url [URL]
With no URL
, reads URL from the standard input.
Prints SSH URL.
Install
npm install github-ssh-url
License
MIT