repository_url 1.0.0 copy "repository_url: ^1.0.0" to clipboard
repository_url: ^1.0.0 copied to clipboard

Alternative `Uri` object for handling Git repository URL format

example/main.dart

import 'package:repository_url/repository_url.dart';

void main() {
  // Build from Uri
  final RepositoryUrl uriRepo =
      RepositoryUrl.fromUri(Uri.https("example.com", "bob/project.git"));

  // Construct alternative SSH URL
  final RepositoryUrl asObj = RepositoryUrl.altSsh(
      userInfo: "alice", host: "example.com", path: "sample/projec.git");

  print(uriRepo);
  print(asObj);
}
0
likes
0
points
32
downloads

Publisher

verified publisherrk0cc.xyz

Weekly Downloads

Alternative `Uri` object for handling Git repository URL format

Repository (GitHub)
View/report issues

Topics

#url #uri #repository #git

Funding

Consider supporting this project:

github.com

License

unknown (license)

More

Packages that depend on repository_url