repository_url 1.1.1 copy "repository_url: ^1.1.1" to clipboard
repository_url: ^1.1.1 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
150
points
44
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

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

BSD-3-Clause (license)

More

Packages that depend on repository_url