Skip to content

Latest commit

 

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipaddr

test and lint pub doc

Usage

import 'package:ipaddr/ipaddr.dart' as ipaddr;

main() {
  var address = ipaddr.IPv4Address('192.168.10.10');
  var network = ipaddr.IPv4Network('192.168.10.0/24');
  if (network.addresses.contains(address)) {
    print('$address is included $network'); // 192.168.10.10 is included 192.168.10.0/24
  }
}

Thanks

Inspired by python ipaddress lib.

License

MIT

About

Dart library for using to create/poke/manipulate IPv4 and IPv6 addresses and networks.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages