earthquake-turkey

0.3.4 • Public • Published

Modül İndirme:

  npm install earthquake-turkey

Bildirim Almak İçin Örnek Kullanım:

const { earthquake } = require('earthquake-turkey')
const date = () => new Date()

console.log(date(), 'System opened!')

earthquake.on('quake', object => {
    console.log(date(), 'Yeni bir deprem oldu!', object)
})

Örnek Çıktı:

{
    "date": "2023.04.13 02:07:34",
    "latitude": "40.6332",
    "longitude": "29.1290",
    "depth": "10.8",
    "ml": "1.5",
    "place": "Hasanbaba, Hasanbaba Cd. 74, 77300 Çınarcık/Yalova",
    "image": "https://maps.gstatic.com/tactile/pane/default_geocode-2x.png",
    "location": "https://www.google.com.tr/maps/place/40.6332,29.1290"
}

Doğrudan Veri Almak İçin Örnek Kullanım:

Seçenek Tip Açıklama
minimum number Minimum büyüklükteki depremleri gösterir. Varsayılan: 0 ve üzeri.
count number Gösterilecek deprem sayısı. Varsayılan: 20 tane.
controlled number Kontrol edilecek deprem sayısı. Varsayılan: 20 tane.
const { earthquakes } = require('earthquake-turkey')
const date = () => new Date()

console.log(date(), 'System opened!')

earthquakes({ count: 3 }).then(datas => {
    console.log(date(), 'here are the past 3 earthquakes:', datas)
})

Örnek Çıktı:

  [{...}, {...}, {...}]

Lisans

ISC License

Geri Bildirim

E-posta: me@cihatksm.com adresinden bana ulaşın.

Bilgi

Kandillii Rasathanesi Ve Deprem Araştırma Enstitüsü, Bölgesel Deprem-Tsunami İzleme Ve Değerlendirme Merkezi tarafından sunulan bilgileri içermektedir.
Herhangi bir sorun teşkil ediyorsa, problem oluşturuyorsa ya da oluşturduysa önce tarafıma bilgi verilmesi rica olunur.

Package Sidebar

Install

npm i earthquake-turkey

Weekly Downloads

14

Version

0.3.4

License

MIT

Unpacked Size

7.45 kB

Total Files

6

Last publish

Collaborators

  • cihatksm