Socket
Socket
Sign inDemoInstall

tr-doviz

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tr-doviz

Küresel döviz piyasalarında en çok işlem gören para birimlerinin Türk Lirası bakımından karşılıklarına kolayca ulaşmanızı sağlayacak bir NPM modülü!


Version published
Weekly downloads
7
increased by250%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Kurulum

  • npm install tr-doviz

Kullanım

Modülün kullanımı açıklamasında da bahsedildiği üzere oldukça basit, fakat modülün çalışma yapısı asenkron türde olduğu için modülü kullanırken "async-await" veya ".then()" yapılarını kullanmanız gerekiyor.

Bu yapılara ait örnekler kullanımlar aşağıda bulunuyor.

".then()" yapısı ile kullanım:

const currency = require("tr-doviz");


currency().then(veri => {

    // kodunuz

    console.log(veri);

});

Sonuç:

{
  tarih: '18.06.2021',     
  baz: 'TL',
  miktar: 1,
  dolar: 8.695652173913043,
  euro: 10.345541071798056,
  frank: 9.456264775413711,
  kron: 1.011030341020534,
  ruble: 0.12027326084864814,
  sterlin: 12.0598166907863,
  yen: 0.0789041787653074,
  yuan: 1.3503112467423741
}

"async-await" yapısı ile kullanım:

const currency = require("tr-doviz");


async function myWallet() {

    const veri = await currency();

    // kodunuz

    console.log(veri);

};

myWallet();

Sonuç:

{
  tarih: '18.06.2021',     
  baz: 'TL',
  miktar: 1,
  dolar: 8.695652173913043,
  euro: 10.345541071798056,
  frank: 9.456264775413711,
  kron: 1.011030341020534,
  ruble: 0.12027326084864814,
  sterlin: 12.0598166907863,
  yen: 0.0789041787653074,
  yuan: 1.3503112467423741
}

Lisans

MIT

Keywords

FAQs

Last updated on 28 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc