https://github.com/axetroy/protocols
Get the protocols of an input url.
https://github.com/axetroy/protocols
dart parser protocol url
Last synced: 3 months 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 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T03:59:50.000Z (over 5 years ago)
- Last Synced: 2025-02-15T05:15:33.766Z (5 months 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
[](https://travis-ci.org/axetroy/protocols)

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)