Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/axetroy/protocols
- Owner: axetroy
- License: mit
- Created: 2017-03-02T03:21:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T03:59:50.000Z (over 4 years ago)
- Last Synced: 2024-10-11T20:12:27.176Z (25 days ago)
- Topics: dart, parser, protocol, url
- Language: Dart
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
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)