sl-address 0.1.0 → 0.1.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 +0 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,25 +67,6 @@ p.searchCity('galleo'); // close matches with similarity scores
|
|
|
67
67
|
p.autocompleteCity('kan'); // ["Kandy", "Kananke Bazaar", ...]
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
## Dataset
|
|
71
|
-
|
|
72
|
-
The package includes `postal-data.json`, generated from the provided `postalcodes.txt`, covering every Sri Lankan postal code along with its city, district, and province. Need to refresh the dataset? Run:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
npm run generate:data
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Development
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
npm install
|
|
82
|
-
npm run lint
|
|
83
|
-
npm run build
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
- `npm run generate:data` – convert `postalcodes.txt` into `src/postal-data.json`
|
|
87
|
-
- `npm run build` – compile TypeScript and copy the dataset to `dist/`
|
|
88
|
-
|
|
89
70
|
## License
|
|
90
71
|
|
|
91
72
|
MIT © Sumudu Kulathunga
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sl-address",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A comprehensive Sri Lankan postal code service package. Includes lookup for provinces, districts, cities, and postal codes, as well as searching and autocompleting city names.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|