bjd-code 0.1.0 → 1.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # bjd-code (법정동 코드)
2
2
 
3
- [국토교통부_전국 법정동 CSV](https://www.data.go.kr/tcs/dss/selectFileDataDetailView.do?publicDataPk=15063424) 데이터를 파싱, 필터링, 트리 구조화하는 Node.js/TypeScript 라이브러리.
3
+ [국토교통부_법정동코드 CSV](https://www.data.go.kr/data/15123287/fileData.do) 데이터를 파싱, 필터링, 트리 구조화하는 Node.js/TypeScript 라이브러리.
4
4
 
5
5
  ## 기능
6
6
 
@@ -29,6 +29,16 @@ bjd tree --pretty
29
29
  bjd search 강남구
30
30
  ```
31
31
 
32
+ ### 설치 없이 바로 실행 (npx)
33
+
34
+ ```bash
35
+ npx bjd-code download
36
+ npx bjd-code parse --pretty
37
+ npx bjd-code filter --level sido --pretty
38
+ npx bjd-code tree --pretty
39
+ npx bjd-code search 강남구
40
+ ```
41
+
32
42
  ## 사용법
33
43
 
34
44
  ### 라이브러리
@@ -114,6 +124,6 @@ npm test
114
124
 
115
125
  ## 기술 스택
116
126
 
117
- - Node.js 24+, ESM
127
+ - Node.js 18+, ESM
118
128
  - TypeScript, Vitest
119
129
  - csv-parse, iconv-lite, commander
package/dist/cli/index.js CHANGED
File without changes
@@ -3,7 +3,7 @@ import { pipeline } from 'node:stream/promises';
3
3
  import { Readable } from 'node:stream';
4
4
  import { dirname } from 'node:path';
5
5
  import { DATA_DIR, DEFAULT_CSV_PATH } from '../utils/paths.js';
6
- const DOWNLOAD_URL = 'https://www.data.go.kr/cmm/cmm/fileDownload.do?atchFileId=FILE_000000002647058&fileDetailSn=1';
6
+ const DOWNLOAD_URL = 'https://www.data.go.kr/cmm/cmm/fileDownload.do?atchFileId=FILE_000000003205363&fileDetailSn=1';
7
7
  /** 법정동 코드 CSV 다운로드 */
8
8
  export async function downloadCSV(options) {
9
9
  const url = options?.url ?? DOWNLOAD_URL;
@@ -26,7 +26,7 @@ export async function downloadCSV(options) {
26
26
  return outputPath;
27
27
  }
28
28
  const MANUAL_INSTRUCTIONS = `
29
- 1. https://www.data.go.kr/tcs/dss/selectFileDataDetailView.do?publicDataPk=15063424 접속
29
+ 1. https://www.data.go.kr/data/15123287/fileData.do 접속
30
30
  2. CSV 파일 다운로드
31
31
  3. 다운로드한 파일을 다음 경로에 저장: ${DEFAULT_CSV_PATH}
32
32
  또는 CLI 사용 시 파일 경로를 직접 지정: bjd parse ./파일경로.csv`.trim();
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "bjd-code",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "description": "법정동 코드 파싱, 필터링, 트리 구조화 라이브러리",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "bin": {
9
- "bjd": "./dist/cli/index.js"
9
+ "bjd": "./dist/cli/index.js",
10
+ "bjd-code": "./dist/cli/index.js"
10
11
  },
11
12
  "exports": {
12
13
  ".": {
@@ -32,7 +33,7 @@
32
33
  ],
33
34
  "license": "MIT",
34
35
  "engines": {
35
- "node": ">=24.0.0"
36
+ "node": ">=18.0.0"
36
37
  },
37
38
  "dependencies": {
38
39
  "commander": "^12.1.0",