geopreview 1.0.0 → 1.0.2
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 +6 -18
- package/dist/cli.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,19 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Geospatial file inspector for the terminal. Displays statistics summary and a Braille-character map preview.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
world.geojson
|
|
7
|
-
FeatureCollection / 240 features / 9.4 MB
|
|
8
|
-
|
|
9
|
-
GEOMETRY SUMMARY PROPERTY SCHEMA
|
|
10
|
-
MultiPolygon 240 fid number ▓▓▓▓▓▓▓▓▓▓ (240/240)
|
|
11
|
-
iso_a2 string ▓▓▓▓▓▓▓▓▓▓ (240/240)
|
|
12
|
-
NAME string ▓▓▓▓▓▓▓▓▓▓ (238/240)
|
|
13
|
-
|
|
14
|
-
MAP PREVIEW
|
|
15
|
-
⣀⡀ ⢀⣀⣀⣀⣀⡀ ⣀⣰⣻⣿⣿⡿⣿⣿⣿⣿⣿⣿⣤⣉⠉⠙⣦⡀ ⢠⣴⡿⠃ ⡀ ⢙⣊⣁⣀
|
|
16
|
-
⠿⣶⣮⣿⡆ ⡏⠉⠉⠉⠉⠙⠛⠛⠛⠛⣫⣿⣿⣹⣿⣹⣷⠂⠹⣷⢀⣴⠶⠛⠩⣧⣶⠄
|
|
17
|
-
```
|
|
5
|
+

|
|
18
6
|
|
|
19
7
|
## Supported Formats
|
|
20
8
|
|
|
@@ -35,7 +23,7 @@ Requires Node.js v18+.
|
|
|
35
23
|
## Usage
|
|
36
24
|
|
|
37
25
|
```bash
|
|
38
|
-
|
|
26
|
+
geopreview <file>
|
|
39
27
|
```
|
|
40
28
|
|
|
41
29
|
### Options
|
|
@@ -50,10 +38,10 @@ gp <file>
|
|
|
50
38
|
### Examples
|
|
51
39
|
|
|
52
40
|
```bash
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
geopreview world.geojson
|
|
42
|
+
geopreview countries.fgb --no-map
|
|
43
|
+
geopreview buildings.parquet --props 30
|
|
44
|
+
geopreview routes.geojson -w 100 -h 30
|
|
57
45
|
```
|
|
58
46
|
|
|
59
47
|
### Keyboard
|
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ import App from "./App.js";
|
|
|
17
17
|
import { getParser } from "./lib/registry.js";
|
|
18
18
|
const cli = meow(`
|
|
19
19
|
Usage
|
|
20
|
-
$
|
|
20
|
+
$ geopreview <file>
|
|
21
21
|
|
|
22
22
|
Options
|
|
23
23
|
--no-map Hide map preview
|
|
@@ -26,8 +26,8 @@ const cli = meow(`
|
|
|
26
26
|
--props, -p Property display limit Default: 15
|
|
27
27
|
|
|
28
28
|
Examples
|
|
29
|
-
$
|
|
30
|
-
$
|
|
29
|
+
$ geopreview world.geojson
|
|
30
|
+
$ geopreview ports.geojson --no-map --props 30
|
|
31
31
|
`, {
|
|
32
32
|
importMeta: import.meta,
|
|
33
33
|
flags: {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geopreview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Terminal preview for geospatial files (GeoJSON, FlatGeobuf, GeoParquet)",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
7
|
+
"geopreview": "dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc",
|