Skip to content

Instantly share code, notes, and snippets.

@edsu
Created October 17, 2014 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/8e0f2e2d9de1df53dba5 to your computer and use it in GitHub Desktop.
Save edsu/8e0f2e2d9de1df53dba5 to your computer and use it in GitHub Desktop.
coffee> anon = require './anon'
{ address: [Function],
compareIps: [Function],
isIpInRange: [Function],
isIpInAnyRange: [Function],
ipToInt: [Function],
getStatus: [Function],
main: [Function] }
coffee> anon.isIpInRange('85.158.226.103', ["85.158.226.0", "85.158.226.31"])
false
coffee> anon.isIpInRange('85.158.226.30', ["85.158.226.0", "85.158.226.31"])
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment