Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.19 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.19 KB

List of all cities/regencies in Indonesia

Install

npm install indonesia-cities-regencies --save

Example

const indonesia = require('indonesia-cities-regencies')

indonesia.getAll() // return all

indonesia.get('jak') // default limit is 10

indonesia.get('jak', 5)
[ { "name": "Kota Administrasi Jakarta Pusat",
    "island": "Jawa",
    "province": "Jakarta",
    "capital": "Menteng" },
  { "name": "Kabupaten Administrasi Kepulauan Seribu",
    "island": "Jawa",
    "province": "Jakarta",
    "capital": "Pulau Pramuka" },
  { "name": "Kota Administrasi Jakarta Barat",
    "island": "Jawa",
    "province": "Jakarta",
    "capital": "-" },
  { "name": "Kota Administrasi Jakarta Selatan",
    "island": "Jawa",
    "province": "Jakarta",
    "capital": "-" },
  { "name": "Kota Administrasi Jakarta Timur",
    "island": "Jawa",
    "province": "Jakarta",
    "capital": "Jatinegara" } ]

Credits

Used in production by

License

MIT @Aldi Priya Perdana