net_passport 0.1.0 copy "net_passport: ^0.1.0" to clipboard
net_passport: ^0.1.0 copied to clipboard

Fetch Cloudflare trace metadata (including client IP) with a tiny API.

example/net_passport_example.dart

import 'package:net_passport/net_passport.dart';

Future<void> main() async {
  final ip = await NetPassport.ip();
  print('Your public IP: $ip');

  final trace = await NetPassport.fetchTrace();
  print('All trace fields:');
  trace.values.forEach((key, value) => print('$key: $value'));
}
0
likes
160
points
60
downloads

Publisher

verified publisherjoltax.com

Weekly Downloads

Fetch Cloudflare trace metadata (including client IP) with a tiny API.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on net_passport