├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── publish.yml │ └── test.yml ├── .gitignore ├── .nvmrc ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── biome.json ├── data ├── LICENSE.md ├── districts.csv ├── islands.csv ├── provinces.csv ├── regencies.csv └── villages.csv ├── docs ├── references.md └── upgrading │ ├── upgrade-to-v3.md │ └── upgrade-to-v4.md ├── examples ├── mysql │ ├── .env.example │ ├── .gitignore │ ├── README.md │ ├── db │ │ ├── migration.ts │ │ └── seeder.ts │ ├── index.ts │ ├── package.json │ └── utils │ │ ├── db.ts │ │ └── env.ts ├── postgres │ ├── .env.example │ ├── .gitignore │ ├── README.md │ ├── db │ │ ├── migration.ts │ │ └── seeder.ts │ ├── index.ts │ ├── package.json │ └── utils │ │ ├── db.ts │ │ └── env.ts └── prisma │ ├── .env.exxample │ ├── .gitignore │ ├── README.md │ ├── index.ts │ ├── migrations │ ├── 20240509070623_init │ │ └── migration.sql │ └── migration_lock.toml │ ├── package.json │ ├── schema.prisma │ └── seed.ts ├── package.json ├── pnpm-lock.yaml ├── src ├── csv-parser.ts └── index.ts ├── test ├── data.spec.ts ├── fixtures │ └── utils.ts └── index.spec.ts ├── tsconfig.json └── vitest.config.ts /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | coverage 2 | node_modules/ 3 | lib 4 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 22 2 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/README.md -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/biome.json -------------------------------------------------------------------------------- /data/LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/data/LICENSE.md -------------------------------------------------------------------------------- /data/districts.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/data/districts.csv -------------------------------------------------------------------------------- /data/islands.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/data/islands.csv -------------------------------------------------------------------------------- /data/provinces.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/data/provinces.csv -------------------------------------------------------------------------------- /data/regencies.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/data/regencies.csv -------------------------------------------------------------------------------- /data/villages.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/data/villages.csv -------------------------------------------------------------------------------- /docs/references.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/docs/references.md -------------------------------------------------------------------------------- /docs/upgrading/upgrade-to-v3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/docs/upgrading/upgrade-to-v3.md -------------------------------------------------------------------------------- /docs/upgrading/upgrade-to-v4.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/docs/upgrading/upgrade-to-v4.md -------------------------------------------------------------------------------- /examples/mysql/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/.env.example -------------------------------------------------------------------------------- /examples/mysql/.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | -------------------------------------------------------------------------------- /examples/mysql/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/README.md -------------------------------------------------------------------------------- /examples/mysql/db/migration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/db/migration.ts -------------------------------------------------------------------------------- /examples/mysql/db/seeder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/db/seeder.ts -------------------------------------------------------------------------------- /examples/mysql/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/index.ts -------------------------------------------------------------------------------- /examples/mysql/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/package.json -------------------------------------------------------------------------------- /examples/mysql/utils/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/utils/db.ts -------------------------------------------------------------------------------- /examples/mysql/utils/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/mysql/utils/env.ts -------------------------------------------------------------------------------- /examples/postgres/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/.env.example -------------------------------------------------------------------------------- /examples/postgres/.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | -------------------------------------------------------------------------------- /examples/postgres/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/README.md -------------------------------------------------------------------------------- /examples/postgres/db/migration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/db/migration.ts -------------------------------------------------------------------------------- /examples/postgres/db/seeder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/db/seeder.ts -------------------------------------------------------------------------------- /examples/postgres/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/index.ts -------------------------------------------------------------------------------- /examples/postgres/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/package.json -------------------------------------------------------------------------------- /examples/postgres/utils/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/utils/db.ts -------------------------------------------------------------------------------- /examples/postgres/utils/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/postgres/utils/env.ts -------------------------------------------------------------------------------- /examples/prisma/.env.exxample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/.env.exxample -------------------------------------------------------------------------------- /examples/prisma/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | -------------------------------------------------------------------------------- /examples/prisma/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/README.md -------------------------------------------------------------------------------- /examples/prisma/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/index.ts -------------------------------------------------------------------------------- /examples/prisma/migrations/20240509070623_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/migrations/20240509070623_init/migration.sql -------------------------------------------------------------------------------- /examples/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /examples/prisma/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/package.json -------------------------------------------------------------------------------- /examples/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/schema.prisma -------------------------------------------------------------------------------- /examples/prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/examples/prisma/seed.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/csv-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/src/csv-parser.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/src/index.ts -------------------------------------------------------------------------------- /test/data.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/test/data.spec.ts -------------------------------------------------------------------------------- /test/fixtures/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/test/fixtures/utils.ts -------------------------------------------------------------------------------- /test/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/test/index.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fityannugroho/idn-area-data/HEAD/vitest.config.ts --------------------------------------------------------------------------------