{"action":"created","issue":{"url":"https://api.github.com/repos/whitequark/ipaddr.js/issues/46","repository_url":"https://api.github.com/repos/whitequark/ipaddr.js","labels_url":"https://api.github.com/repos/whitequark/ipaddr.js/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/whitequark/ipaddr.js/issues/46/comments","events_url":"https://api.github.com/repos/whitequark/ipaddr.js/issues/46/events","html_url":"https://github.com/whitequark/ipaddr.js/issues/46","id":167797558,"number":46,"title":"Feature: CIDR first and last IP in a range","user":{"login":"keverw","id":962371,"avatar_url":"https://avatars.githubusercontent.com/u/962371?v=3","gravatar_id":"","url":"https://api.github.com/users/keverw","html_url":"https://github.com/keverw","followers_url":"https://api.github.com/users/keverw/followers","following_url":"https://api.github.com/users/keverw/following{/other_user}","gists_url":"https://api.github.com/users/keverw/gists{/gist_id}","starred_url":"https://api.github.com/users/keverw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keverw/subscriptions","organizations_url":"https://api.github.com/users/keverw/orgs","repos_url":"https://api.github.com/users/keverw/repos","events_url":"https://api.github.com/users/keverw/events{/privacy}","received_events_url":"https://api.github.com/users/keverw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-27T08:21:00Z","updated_at":"2016-07-27T13:26:52Z","closed_at":null,"body":"I'm getting a list of CIDRs and wanting to get the first and last IP address to store in the database. Any easy way to get the first and last IP using this module? I found one that could do it but v6 results would incorrectly return 255.255.255.255"},"comment":{"url":"https://api.github.com/repos/whitequark/ipaddr.js/issues/comments/235584103","html_url":"https://github.com/whitequark/ipaddr.js/issues/46#issuecomment-235584103","issue_url":"https://api.github.com/repos/whitequark/ipaddr.js/issues/46","id":235584103,"user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T13:26:52Z","updated_at":"2016-07-27T13:26:52Z","body":"Nah, that's simple. An IPv4 address consists of four octets, an IPv6 address consists of eight 16-bit parts.  For a CIDR mask `/n`, make a new address with n least significant (rightmost) bits filled with ones. The first address is `addr & (~mask)`, the last address is `addr | mask`, where the bitwise operations are performed octet-by-octet or part-by-part."}}
{"actor":{"display_login":"whitequark"}}