npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@halilertekin/turkey_province_image

v3.3.3

Published

The most comprehensive address data package for Turkey! 81 provinces, 973 districts, 870+ neighborhoods, 245+ streets. TypeScript support! - Türkiye'nin en kapsamlı adres veri paketi! 81 il, 973 ilçe, 870+ mahalle, 245+ sokak

Readme

🇹🇷 Turkey Province Image & Data

Türkiye'nin en kapsamlı adres veri paketi! 81 il, 973 ilçe, 32.000+ mahalle ve 245+ sokak bilgisi. TypeScript desteği ile!

npm version TypeScript License: ISC

🇬🇧 English | 🇹🇷 Türkçe | 🇳🇱 Nederlands

📊 Veri İstatistikleri

  • 🇹🇷 81 İl - Tüm Türkiye
  • 🏘️ 973 İlçe - Eksiksiz liste
  • 🏠 32.000+ Mahalle - Tüm Türkiye (Yeni!)
  • 🛣️ 245+ Sokak/Cadde - Meşhur caddeler
  • 🖼️ 81 İl Resmi - Görsel içerik

📦 Kurulum

npm install @halilertekin/turkey_province_image

🚀 Kullanım

JavaScript

const turkeyData = require('@halilertekin/turkey_province_image');

// Tüm illeri getir
const cities = turkeyData.getAllCities();

// İstanbul'un ilçelerini getir
const districts = turkeyData.getDistrictsByCity('34');

// Çankaya'nın mahallelerini getir
const neighborhoods = turkeyData.getNeighborhoodsByDistrict('1231');

// Arama yap
const results = turkeyData.searchCities('ANKARA');

TypeScript

import turkeyData, { City, District, Neighborhood, Street } from '@halilertekin/turkey_province_image';

const city: City | undefined = turkeyData.getCityByCode('34');
const districts: District[] = turkeyData.getDistrictsByCity('34');

📋 Özellikler

  • 81 İl - Tüm Türkiye
  • 973 İlçe - Resmi liste
  • 32.000+ Mahalle - Tüm Türkiye
  • 245+ Sokak - Meşhur caddeler
  • TypeScript Desteği - Tam tip güvenliği
  • 7 Coğrafi Bölge - Bölgesel filtreleme
  • 24 API Metodu - CRUD + Arama
  • Hiyerarşik Veri - İl → İlçe → Mahalle → Sokak

🗂️ Veri Kapsamı

Mahalleler (32.000+):

  • 81 il ve 973 ilçenin tamamı için mahalle listesi.
  • Açık veri kaynaklarından güncellendi (2024/2025).

Sokaklar (245+):

  • İstanbul: 45 | Ankara: 35 | İzmir: 35
  • Diğer büyükşehirler: 130+ sokak

🔧 API Metodları (24)

İl Metodları

getAllCities()                    // Tüm illeri getir (81)
getCityByCode(code)              // Plaka koduna göre getir
getCityByName(name)              // İsme göre getir
getCitiesByRegion(region)        // Bölgeye göre getir
searchCities(query)              // İl ara

İlçe Metodları

getAllDistricts()                // Tüm ilçeleri getir (973)
getDistrictsByCity(cityCode)     // İle göre getir
getDistrictByCode(districtCode)  // Koda göre getir
searchDistricts(query)           // İlçe ara

Mahalle ve Sokak Metodları

getAllNeighborhoods()            // Tüm mahalleler
getNeighborhoodsByCity(code)     // İle göre
getNeighborhoodsByDistrict(code) // İlçeye göre
searchNeighborhoods(query)       // Mahalle ara

getAllStreets()                  // Tüm sokaklar
getStreetsByCity(code)           // İle göre
getStreetsByDistrict(code)       // İlçeye göre
searchStreets(query)             // Sokak ara

💡 Kullanım Örnekleri

Örnek 1: Tam Hiyerarşi

const istanbul = turkeyData.getCityByCode('34');
const districts = turkeyData.getDistrictsByCity('34');
const neighborhoods = turkeyData.getNeighborhoodsByCity('34');

console.log(`${istanbul.cityName}: ${districts.length} ilçe, ${neighborhoods.length} mahalle`);
// Çıktı: İSTANBUL: 39 ilçe, 960 mahalle

Örnek 2: Bölgesel Analiz

const marmaraCities = turkeyData.getCitiesByRegion('Marmara');
console.log(`Marmara Bölgesi: ${marmaraCities.length} il`);

📝 Güncellemeler

v3.3.1 (2026-05-23) 🛠️

  • 🐛 Senkronizasyon - Sokak verileri yeni resmi ilçe/mahalle kodlarıyla senkronize edildi.
  • 📚 Doküman Güncellemesi - İstatistikler ve bağlantılar güncellendi.

v3.3.0 (2025-12-15) 🎉

  • 32.000+ Mahalle - Tüm Türkiye mahalle verileri eklendi!
  • 🔄 Veri Kaynağı - Daha kolay güncellemeler için GitHub tabanlı açık verilere geçildi.

👤 Yazar

Halil Ertekin

📄 Lisans

ISC


Made with ❤️ in Turkey 🇹🇷