ip2asn
nodejs module for getting asn for a given ip
utilizes theMaxMind GeoLite Legacy Downloadable Databases csv format
This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com
example
var ip2asn = ; var opts = {}; ip2asn; var arr = '50.21.180.100' '50.22.180.100' '1.38.1.1' 2733834241 ip2asn;
optionally you can load the data from another csv file instead of the default one by var ip2asn = require('./index.js')('path-to-my-file.csv');
another option is to give a different url for updating the default file in the options. this url must point to a zip file containing a GeoIPASNum2.csv file
var opts = {};optsupdate = true;optsurl = 'http://wherever.you.want.zip'