@geoalgeria/poste 1.0.0

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/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // @geoalgeria/poste — lightweight loaders for the post-office & ATM datasets.
2
+ import { readFileSync } from "node:fs";
3
+ import { fileURLToPath } from "node:url";
4
+ import { dirname, join } from "node:path";
5
+
6
+ const DATA = join(dirname(fileURLToPath(import.meta.url)), "data");
7
+ const load = (p) => JSON.parse(readFileSync(join(DATA, p), "utf-8"));
8
+
9
+ export const postOffices = () => load("postoffices.json");
10
+ export const atms = () => load("atms.json");
11
+ export const metadata = () => load("metadata.json");
12
+
13
+ export default { postOffices, atms, metadata };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@geoalgeria/poste",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "Algeria post offices (3908) and ATMs (2026) — real postal codes, bilingual names, coordinates, commune/wilaya linkage. Sourced from Algérie Poste (baridimap.poste.dz). JSON, CSV, GeoJSON.",
6
+ "main": "index.js",
7
+ "exports": {
8
+ ".": "./index.js",
9
+ "./data/*": "./data/*"
10
+ },
11
+ "files": [
12
+ "data/**/*.json",
13
+ "index.js"
14
+ ],
15
+ "scripts": {
16
+ "fetch": "node scripts/fetch.mjs"
17
+ },
18
+ "keywords": [
19
+ "algeria",
20
+ "post-office",
21
+ "bureau-de-poste",
22
+ "atm",
23
+ "dab",
24
+ "postal-codes",
25
+ "code-postal-algerie",
26
+ "algerie-poste",
27
+ "baridimap",
28
+ "geojson",
29
+ "geoalgeria",
30
+ "dz"
31
+ ],
32
+ "author": "Yasser's Studio (https://yasser.studio)",
33
+ "license": "MIT",
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/yasserstudio/geoalgeria.com/issues"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/yasserstudio/geoalgeria.com.git",
43
+ "directory": "packages/poste"
44
+ },
45
+ "homepage": "https://geoalgeria.com",
46
+ "engines": {
47
+ "node": ">=18"
48
+ }
49
+ }