[Feature] Add 'memorySearch' and 'memorySearchSync' for Nodejs

1) Add features.
2) Add unit tests.
3) Add benchmark.
This commit is contained in:
MaleDong
2018-07-31 15:48:05 +08:00
parent f4fba7db60
commit b9e9fcfd80
9 changed files with 4402 additions and 24 deletions

View File

@@ -5,7 +5,7 @@
"main": "ip2region.js",
"scripts": {
"test": "jest",
"coverage":"npm run test && jest --coverage"
"coverage": "npm run test && jest --coverage"
},
"repository": {
"type": "git",
@@ -23,6 +23,7 @@
},
"homepage": "https://github.com/lionsoul2016/ip2region",
"devDependencies": {
"jest": "^19.0.2"
"jest": "^19.0.2",
"benchmark": "^2.1.4"
}
}