geoplegma-js 0.0.1-beta → 0.0.2-beta
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 -4
- package/dist/native/napi.node +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,26 +7,26 @@ JavaScript package for GeoPlegma. At this point, it runs only DGGRID.
|
|
|
7
7
|
Install the library.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install
|
|
10
|
+
npm install geoplegma-js
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
or
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
yarn add
|
|
16
|
+
yarn add geoplegma-js
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
or
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
pnpm install
|
|
22
|
+
pnpm install geoplegma-js
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Example:
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
import { Dggrs } from "geoplegma-js";
|
|
29
|
-
const g = new Dggrs("
|
|
29
|
+
const g = new Dggrs("IVEA7H");
|
|
30
30
|
const rl = 3;
|
|
31
31
|
const bbox = [
|
|
32
32
|
[-10.0, -10.0],
|
|
@@ -47,11 +47,13 @@ npm install
|
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
- Get the native binding files, and run the script:
|
|
50
|
+
|
|
50
51
|
```bash
|
|
51
52
|
./scripts/dev.sh
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
This will:
|
|
56
|
+
|
|
55
57
|
- Build the .node files from GeoPlegma/gp-bindings/js.
|
|
56
58
|
- Copy them into GeoPlegma-js/native/.
|
|
57
59
|
- Let your JS code require('./native/something.node') without committing them.
|
package/dist/native/napi.node
CHANGED
|
Binary file
|