@iamdimka/mmdb
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@iamdimka/mmdb

another mmdb reader rewritten in typescript

Usage

import Reader, { CountryResponse } from "@iamdimka/mmdb"

// load somehow buffer
const cacheSize = 5000;
const reader = new Reader<CountryResponse>(buffer, 5000); // cache size. by default 5000 

const result = reader.lookup(ip);

References:

  • mmdb-reader logic taken from, because in practice this is the fastest one
  • mmdb-lib types picked here

Readme

Keywords

none

Package Sidebar

Install

npm i @iamdimka/mmdb

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

27.7 kB

Total Files

11

Last publish

Collaborators

  • iamdimka