A simple code and command-line utils to convert mmdb to json
npm install --global mmdb2json
npx mmdb2json [options]
npx mmdb2json --help
'usage: mmdb2json [options]',
'',
'options:',
' --input Path to .mmdb file [GeoLite2-City.mmdb]',
' --output Path to .json file [GeoLite2-City.json]',
' --help Print this list and exit',
' --version Print the version and exit.',
'',
npm install mmdb2json
import { Mmdb2Json } from 'mmdb2json';
const reader = Mmdb2Json.openSync(input);
const result = reader.get();
MIT