@countrystatecity/cli 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +25 -0
  2. package/package.json +16 -13
package/README.md CHANGED
@@ -126,6 +126,30 @@ async function main() {
126
126
  }
127
127
  ```
128
128
 
129
+ ### Interactive Explorer
130
+
131
+ ```bash
132
+ # Launch an interactive browser: pick a country, then a state, then an action
133
+ csc explore
134
+ ```
135
+
136
+ From the action menu you can:
137
+ - View all cities for the selected state
138
+ - View full country or state details
139
+ - Get the equivalent `csc generate` command to copy-paste
140
+
141
+ > Requires an interactive terminal (TTY). Use `csc search` for scripts.
142
+
143
+ ### Export
144
+
145
+ ```bash
146
+ # Open the online bulk export tool in your browser
147
+ csc export
148
+
149
+ # Get the export URL as JSON (useful for scripts)
150
+ csc export --json
151
+ ```
152
+
129
153
  ## Tiers
130
154
 
131
155
  | Feature | Community (Free) | Starter ($5/mo) | Supporter ($9/mo) | Professional ($29/mo) | Business ($79/mo) |
@@ -140,6 +164,7 @@ async function main() {
140
164
  - [API Documentation](https://countrystatecity.in/docs/)
141
165
  - [Dashboard](https://app.countrystatecity.in)
142
166
  - [Pricing](https://app.countrystatecity.in/pricing)
167
+ - [GitHub (monorepo)](https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/cli)
143
168
 
144
169
  ## License
145
170
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@countrystatecity/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official CLI for the Country State City API - search, explore, and generate code from geographic data",
5
5
  "files": [
6
6
  "dist",
@@ -14,13 +14,6 @@
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },
17
- "scripts": {
18
- "build": "tsup src/index.ts --format esm --dts --clean",
19
- "dev": "tsx src/index.ts",
20
- "test": "vitest",
21
- "lint": "eslint src/",
22
- "prepublishOnly": "npm run build"
23
- },
24
17
  "keywords": [
25
18
  "country",
26
19
  "state",
@@ -36,9 +29,13 @@
36
29
  ],
37
30
  "author": "dr5hn",
38
31
  "license": "MIT",
32
+ "homepage": "https://github.com/dr5hn/countrystatecity-npm/tree/main/packages/cli#readme",
33
+ "bugs": {
34
+ "url": "https://github.com/dr5hn/countrystatecity-npm/issues"
35
+ },
39
36
  "repository": {
40
37
  "type": "git",
41
- "url": "git+https://github.com/dr5hn/countrystatecity-cli.git"
38
+ "url": "git+https://github.com/dr5hn/countrystatecity-npm.git"
42
39
  },
43
40
  "publishConfig": {
44
41
  "access": "public"
@@ -57,9 +54,15 @@
57
54
  "devDependencies": {
58
55
  "@types/node": "^22.0.0",
59
56
  "eslint": "^9.0.0",
60
- "tsup": "^8.0.0",
61
- "tsx": "^4.0.0",
57
+ "tsup": "^8.5.1",
58
+ "tsx": "~4.21.1",
62
59
  "typescript": "^5.7.0",
63
- "vitest": "^3.0.0"
60
+ "vitest": "^4.1.8"
61
+ },
62
+ "scripts": {
63
+ "build": "tsup src/index.ts --format esm --dts --clean",
64
+ "dev": "tsx src/index.ts",
65
+ "test": "vitest",
66
+ "lint": "eslint src/"
64
67
  }
65
- }
68
+ }