protocols 0.1.1
protocols: ^0.1.1 copied to clipboard
Get the protocols of an input url.
protocols #
Get the protocols of an input url.
Usage #
import 'package:protocols/protocols.dart' show protocols;
void main(){
List<String> protos = protocols("https://www.google.com");
print(protos); // [https]
List<String> protos = protocols("git+https@github.com:axetroy/protocols.git");
print(protos); // [git, https]
List<String> protos = protocols("wss://example.com/api/v1");
print(protos); // [wss]
}
Test #
./TEST
Contribute #
git clone https://github.com/axetroy/protocols.git
cd ./url-parse
pub get
./TEST
LICENSE #
The MIT License