https://github.com/lsongdev/node-qqwry
🌎 A lightweight native JavaScript implementation of GeoIP API
https://github.com/lsongdev/node-qqwry
geoip geolocation qqwry
Last synced: 7 months ago
JSON representation
🌎 A lightweight native JavaScript implementation of GeoIP API
- Host: GitHub
- URL: https://github.com/lsongdev/node-qqwry
- Owner: lsongdev
- License: mit
- Created: 2019-06-05T12:23:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-25T12:46:55.000Z (over 3 years ago)
- Last Synced: 2025-09-06T07:52:32.369Z (7 months ago)
- Topics: geoip, geolocation, qqwry
- Language: JavaScript
- Homepage: https://npmjs.org/geoip-qqwry
- Size: 20.1 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## geoip-qqwry
> A light weight native JavaScript implementation of GeoIP API
[](https://npmjs.org/geoip-qqwry)
[](https://travis-ci.org/song940/qqwry)
### Installation
```bash
$ npm i [-g] geoip-qqwry [--save]
```
### Usage
```bash
~$ qqwry
~> geoip-qqwry@0.0.3
- lookup [ip]
- update
- version
- help
~$ qqwry lookup 114.114.114.114
~> 江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器
```
### Example
```js
const qqwry = require('geoip-qqwry');
const { lookup } = qqwry();
console.log(lookup('8.8.8.8'));
//=> [ '美国', '加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器' ]
```
### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
### MIT
This work is licensed under the [MIT license](./LICENSE).
---