cellocate
Version:
手机归属地查询
1 lines • 935 B
JSON
{"id":"h1mC","dependencies":[{"name":"/Users/toobug/work/github/cellocate/package.json","includedInParent":true,"mtime":1700791214024},{"name":"./searchfile","loc":{"line":5,"column":25},"parent":"/Users/toobug/work/github/cellocate/src/readnumber.js","resolved":"/Users/toobug/work/github/cellocate/src/searchfile.js"}],"generated":{"js":"var r=require(\"fs\"),n=require(\"path\"),e=require(\"./searchfile\"),t=n.join(__dirname,\"../data\");module.exports=function(u){var i=n.join(t,\"data_\"+u.substr(1,2)+\".bin\");if(u=+u.substr(3,4),!r.existsSync(i))return null;var s=r.statSync(i).size,a=5*u,o=s,c=r.openSync(i,\"r\"),l=e(c,0,o,function(r){return 5*Math.floor(r/5)},function(r){return r.length>=5},function(r){var n=256*r[0]+r[1];return n===u?0:n<u?-1:1},a);return r.closeSync(c),l?{addressIndex:256*l[2]+l[3],spIndex:l[4]}:null};"},"sourceMaps":null,"error":null,"hash":"a623fc9c1467a073749780dd23ed5a11","cacheData":{"env":{}}}