@maxminddatabase/geolite2 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
1
|
# @MaxMindDatabase/GeoLite2
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @MaxMindDatabase/GeoLite2
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Examples
|
|
10
|
+
|
|
11
|
+
### GeoLite2 Class
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { GeoLite2 } from "@maxminddatabase/geolite2";
|
|
15
|
+
import type { ReaderModel, City } from "@maxminddatabase/geolite2/types";
|
|
16
|
+
|
|
17
|
+
const reader: ReaderModel = new GeoLite2("City").reader;
|
|
18
|
+
|
|
19
|
+
const city: City = reader.city("8.8.8.8");
|
|
20
|
+
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|