Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/axetroy/protocols

Get the protocols of an input url.
https://github.com/axetroy/protocols

dart parser protocol url

Last synced: about 8 hours ago
JSON representation

Get the protocols of an input url.

Awesome Lists containing this project

README

        

# protocols

[![Build Status](https://travis-ci.org/axetroy/protocols.svg?branch=master)](https://travis-ci.org/axetroy/protocols)
![License](https://img.shields.io/badge/license-MIT-green.svg)
![Dart](https://img.shields.io/badge/dart-%3E=1.2.0-blue.svg?style=flat-square)

Get the protocols of an input url.

## Usage

```dart
import 'package:protocols/protocols.dart' show protocols;

void main(){
List protos = protocols("https://www.google.com");
print(protos); // [https]

List protos = protocols("[email protected]:axetroy/protocols.git");
print(protos); // [git, https]

List protos = protocols("wss://example.com/api/v1");
print(protos); // [wss]
}
```

## Test

```bash
./TEST
```

## Contribute

```bash
git clone https://github.com/axetroy/protocols.git
cd ./url-parse
pub get
./TEST
```

## LICENSE

The [MIT License](https://github.com/axetroy/protocols/blob/master/LICENSE)