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("[email protected]: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