Skip to content
This repository was archived by the owner on Aug 1, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Depfu

Caution

This library is deprecated.

Use "mmdb-lib" directly instead.

The code below works in a browser - no transpilation needed. Just wrap it in <script type="module">...</script> and drop it as is in your HTML.

✨ Usage

import { Buffer } from 'https://esm.run/buffer';
import { Reader } from 'https://esm.run/mmdb-lib';

const response = await fetch(
  'https://raw.githubusercontent.com/maxmind/MaxMind-DB/main/test-data/GeoLite2-Country-Test.mmdb',
);

const buffer = Buffer.from(await response.arrayBuffer());

const reader = new Reader(buffer);

console.log(reader.get('89.160.20.122'));

About

Deprecated. Use mmdb-lib directly.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages