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

nodejs-krdae-earthquake-api

v1.5.6

Published

Bu paket ile TÜRKİYE CUMHURİYETİ ve çevresindeki ülkeleri kapsayan bir alan içerisinde oluşan son 500 depremi json formatında alabilirsiniz.

Readme

KRDAE EARTHQUAKE API (NODE.JS)

KULLANIM

  1. > npm i nodejs-krdae-earthquake-api
  2. Aşağıdaki örnek kod ile türkiye ve çevresinde olan son 500 depremi json formatında alabilirsiniz.
const krdae = require('nodejs-krdae-earthquake-api')

krdae.getLast500Earthquakes()
    .then(count => {
        console.log(count)
    })
    .catch(err => {
        console.log(err)
    })
  1. Aşağıdaki örnek kod ile sadece belirli bir şehrin 100 kilometrelik yarıçapın içinde olan depremleri json formatında alabilirsiniz.
krdae.getFromCity("istanbul")
    .then(count => {
        console.log(count)
    })
    .catch(err => {
        console.log(err)
    })
  1. Aşağıdaki örnek kod ile sadece belirli bir koordinat ve yarıçaptaki depremleri json formatında alabilirsiniz.
krdae.getFromRadiusAndCoordinates(latitude, longitude, radius)
    .then(count => {
        console.log(count)
    })
    .catch(err => {
        console.log(err)
    })

ÖRNEK YANIT

{
  "source_url": "http://www.koeri.boun.edu.tr/scripts/lst2.asp",
  "result": [
        {
            "magnitude": 2.4,
            "coordinates": {
                "latitude": 36.9348,
                "longitude": 27.3252
            },
            "location": "GOKOVA KORFEZI (AKDENIZ)",
            "depth": 8.5,
            "unix_timestamp": 1629467592,
            "datetime": "2021-08-20T16:53:12+0300",
            "revised": null,
            "id_hash": "c9efe10825e2639cef790768d26767dd",
            "hash": "d03a3d0b42f52a4b93e29db106fa57ed"
        },
        {
            "magnitude": 2.7,
            "coordinates": {
                "latitude": 39.5932,
                "longitude": 28.095
            },
            "location": "MAHMUDIYE-KEPSUT (BALIKESIR)",
            "depth": 7.5,
            "unix_timestamp": 1629466788,
            "datetime": "2021-08-20T16:39:48+0300",
            "revised": null,
            "id_hash": "a58f2c0c05b1211317533de203503142",
            "hash": "b27fe9a9198600c194c08e15c097d0ef"
        },
        "..."
    ]
}

VERİ KAYNAĞI

Boğaziçi Üniversitesi Kandilli Rasathanesi ve Deprem Araştırma Enstitüsü Bölgesel Deprem-Tsunami İzleme ve Değerlendirme Merkezi