# whoisthere WHOIS parsing crate --------------------------------------------------- ## Usage ```rust use whoisthere::parse_info; let domain_name: &str = "somesite.co.uk"; let whois_response_file_path_string: String = format!("tests/_data_/{}.txt", &domain_name); let whois_response_file_path: &Path = Path::new(&whois_response_file_path_string); let whois_response: String = fs::read_to_string(whois_response_file_path.as_os_str()) .expect("Something went wrong reading the file"); let domain_props = parse_info(domain_name, &whois_response); assert_eq!(domain_props.domain_name, "somesite.co.uk"); assert_eq!(domain_props.expiration_date, "2022-05-14T00:00:00Z"); assert_eq!(domain_props.is_registered, true); assert_eq!(domain_props.is_under_grace_period, false); ``` --------------------------------------------------- ## License To the extent possible under law, the author(s) have dedicated all copyright related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.