hxnodejs-maxmind

Externs for the maxmind NPM module
https://github.com/proletariatgames/hxnodejs-maxmind

To install, run:

haxelib install hxnodejs-maxmind 2.11.1 

See using Haxelib in Haxelib documentation for more information.

README.md

Haxe/hxnodejs externs for the maxmind npm library

Tested using maxmind version 2.11.0

Example

This example requires the free GeoLite2 database files.

package main;

import js.npm.Maxmind;
import js.npm.maxmind.Reader;

class Main {
  static public function main() {
    var countryReader:Reader<CountryResponse> = Maxmind.openSync('data/20181120/GeoLite2-Country.mmdb');
    trace(countryReader.get("8.8.8.8"));
  }
}
Contributors
Proletariat
ProletariatDev1
Version
2.11.1
Published
7 years ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub