UNPKG

libmaxminddb

Version:

Node.js bindings for libmaxminddb (to read MaxMind DB with the best performance - using memory-mapped file!)

71 lines (70 loc) 2.4 kB
{ "name": "libmaxminddb", "version": "1.0.0", "description": "Node.js bindings for libmaxminddb (to read MaxMind DB with the best performance - using memory-mapped file!)", "keywords": [ "maxmind", "maxminddb", "libmaxminddb", "mmdb", "mmdblookup", "geoip", "geoip2", "geolite2", "geolocation", "ip" ], "author": "Nathan Poirier <nathan@poirier.io>", "license": "Apache-2.0", "homepage": "https://github.com/nathan818fr/node-libmaxminddb", "repository": "https://github.com/nathan818fr/node-libmaxminddb", "files": [ "binding.js", "install/**", "lib/**", "src/**" ], "engines": { "node": ">=16" }, "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { "install": "node ./install/prebuild.js && node ./binding.js && node-gyp rebuild", "test": "jest ./test/lib", "lint": "npm run lint:js && npm run lint:cpp", "lint:js": "npm run lint:js:prettier && npm run lint:js:eslint", "lint:js:prettier": "prettier -c ./install ./lib ./.github ./docs \"*.js\" \"*.json\" \"*.md\"", "lint:js:eslint": "eslint ./lib", "lint:cpp": "npm run lint:cpp:clang && npm run lint:cpp:cpplint", "lint:cpp:clang": "clang-format --dry-run --Werror ./src/**.cc ./src/**.h", "lint:cpp:cpplint": "python3 ./tools/cpplint.py --linelength=120 --filter=-legal/copyright,-readability/todo,-build/include_subdir --root=src --recursive ./src", "format": "npm run format:js && npm run format:cpp", "format:js": "prettier -w ./install ./lib ./.github ./docs \"*.js\" \"*.json\" \"*.md\"", "format:cpp": "clang-format --verbose -i ./src/**.cc ./src/**.h", "release": "npm run lint && npm run test && release-it --git.tagName='v${version}' --github.release=true" }, "dependencies": { "detect-libc": "^1.0.3", "nan": "^2.15.0", "simple-get": "^4.0.0", "tar-fs": "^2.1.1" }, "devDependencies": { "@types/node": "^16.10.3", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "clang-format": "^1.5.0", "eslint": "^7.32.0", "eslint-plugin-jest": "^24.5.2", "jest": "^27.2.4", "prettier": "^3.0.3", "prettier-plugin-jsdoc": "^1.0.1", "release-it": "^16.1.5", "typescript": "^4.4.3" }, "config": { "libmaxminddb_ignore_global": false, "libmaxminddb_version": "1.7.1-1" } }