Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/normalize-ssh

Normalize a SSH URL
https://github.com/zkochan/normalize-ssh

normalize ssh

Last synced: 28 days ago
JSON representation

Normalize a SSH URL

Awesome Lists containing this project

README

        

# normalize-ssh

> Normalize a SSH URL

[![npm version](https://img.shields.io/npm/v/normalize-ssh.svg)](https://www.npmjs.com/package/normalize-ssh) [![Build Status](https://img.shields.io/travis/zkochan/normalize-ssh/master.svg)](https://travis-ci.org/zkochan/normalize-ssh)

## Installation

```
npm i -S normalize-ssh
```

## Usage

```js
const normalizeSshUrl = require('normalize-ssh')

normalizeSshUrl('[email protected]:myproject/myrepo.git')
//> ssh://[email protected]:22/myproject/myrepo.git
```

## License

[MIT](LICENSE) © [Zoltan Kochan](http://kochan.io)