UNPKG

@ovv/nali-cli

Version:

Parse geoinfo of IP Address without leaving your terminal

12 lines (10 loc) 265 B
const { existsSync } = require('fs'); const { qqwryDataPath } = require('./const'); module.exports = (fn) => { if (!existsSync(qqwryDataPath)) { const { downloadQqwry } = require('./qqwryUpdate'); downloadQqwry(qqwryDataPath); } else { fn(); } }