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 🙏

© 2024 – Pkg Stats / Ryan Hefner

azn_rates

v1.0.3

Published

AZN-in məzənnəsi JSON formatında

Downloads

12

Readme

AZN-in Məzənnəsi JSON formatında

Qeyd: Modul data üçün cbar.az-ı istifadə edir.

İstifadə qaydası

Modul promise qaytarır və istifadəsi aşağıdakı kimidir.

Heç bir parameter göndərilməsə həmin günün məzənnəsini qaytarır.

Keçmiş günlərin məzənnəsini almaq üçün həmin günü funksiyaya 'dd.mm.yyyy' formatında göndərin.

const azn = require('azn_rates');

azn().then(function(data){
	console.log("%s tarixi üçün manatın dollara qarşı məzənnəsi belədir: %s",
    	data.date,data.foreignCurrencies.USD.value);
});

// 20.10.2017 tarixi üçün manatın dollara qarşı məzənnəsi belədir: 1.7001
const azn = require('azn_rates');

azn("12.01.2015").then(function(data){
	console.log("%s tarixi üçün manatın dollara qarşı məzənnəsi belədir: %s",
    	data.date,data.foreignCurrencies.USD.value);
});

// 12.01.2015 tarixi üçün manatın dollara qarşı məzənnəsi belədir: 0.7844 :sob:

Nümunə cavab

{
    date: "20.11.2017",
    preciousMetals: {
        XPD: {
            code: "XPD",
            nominal: "1 t.u.",
            name: "Palladium",
            value: "1695.0994"
        },
        XPT: {
            code: "XPT",
            nominal: "1 t.u.",
            name: "Platin",
            value: "1593.0874"
        },
        XAG: {
            code: "XAG",
            nominal: "1 t.u.",
            name: "Gümüş",
            value: "29.2349"
        },
        XAU: {
            code: "XAU",
            nominal: "1 t.u.",
            name: "Qızıl",
            value: "2183.6519"
        }
    },
    foreignCurrencies: {
        CZK: {
            code: "CZK",
            nominal: "1",
            name: "Çexiya kronu",
            value: "0.0780"
        },
        IRR: {
            code: "IRR",
            nominal: "100",
            name: "İran rialı",
            value: "0.0043"
        },
        KRW: {
            code: "KRW",
            nominal: "100",
            name: "Cənubi Korea vonu",
            value: "0.1545"
        },
        TMT: {
            code: "TMT",
            nominal: "1",
            name: "Yeni türkmən manatı",
            value: "0.4858"
        },
        RUB: {
            code: "RUB",
            nominal: "1",
            name: "Rusiya rublu",
            value: "0.0287"
        },
        GEL: {
            code: "GEL",
            nominal: "1",
            name: "Gürcü larisi",
            value: "0.6280"
        },
        NZD: {
            code: "NZD",
            nominal: "1",
            name: "Yeni Zelandiya dolları",
            value: "1.1592"
        },
        KZT: {
            code: "KZT",
            nominal: "1",
            name: "Qazaxıstan tengəsi",
            value: "0.0051"
        },
        NOK: {
            code: "NOK",
            nominal: "1",
            name: "Norveç kronu",
            value: "0.2057"
        },
        GBP: {
            code: "GBP",
            nominal: "1",
            name: "İngilis funt sterlinqi",
            value: "2.2440"
        },
        BYN: {
            code: "BYN",
            nominal: "1",
            name: "Belarus rublu",
            value: "0.8496"
        },
        TRY: {
            code: "TRY",
            nominal: "1",
            name: "Türk lirəsi",
            value: "0.4395"
        },
        EGP: {
            code: "EGP",
            nominal: "1",
            name: "Misir funtu",
            value: "0.0963"
        },
        LBP: {
            code: "LBP",
            nominal: "100",
            name: "Livan funtu",
            value: "0.1127"
        },
        KWD: {
            code: "KWD",
            nominal: "1",
            name: "Küveyt dinarı",
            value: "5.6270"
        },
        UZS: {
            code: "UZS",
            nominal: "100",
            name: "Özbək somu",
            value: "0.0211"
        },
        SEK: {
            code: "SEK",
            nominal: "1",
            name: "İsveç kronu",
            value: "0.2015"
        },
        CNY: {
            code: "CNY",
            nominal: "1",
            name: "Çin yuanı",
            value: "0.2562"
        },
        TWD: {
            code: "TWD",
            nominal: "1",
            name: "Tayvan dolları",
            value: "0.0565"
        },
        CLP: {
            code: "CLP",
            nominal: "100",
            name: "Çili pesosu",
            value: "0.2713"
        },
        IDR: {
            code: "IDR",
            nominal: "100",
            name: "İndoneziya rupiası",
            value: "0.0126"
        },
        INR: {
            code: "INR",
            nominal: "1",
            name: "Hindistan rupisi",
            value: "0.0261"
        },
        KGS: {
            code: "KGS",
            nominal: "1",
            name: "Qırğız somu",
            value: "0.0244"
        },
        CAD: {
            code: "CAD",
            nominal: "1",
            name: "Kanada dolları",
            value: "1.3294"
        },
        MYR: {
            code: "MYR",
            nominal: "1",
            name: "Malayziya rinqqiti",
            value: "0.4090"
        },
        TJS: {
            code: "TJS",
            nominal: "1",
            name: "Tacik somonisi",
            value: "0.1927"
        },
        MDL: {
            code: "MDL",
            nominal: "1",
            name: "Moldova leyi",
            value: "0.0968"
        },
        ILS: {
            code: "ILS",
            nominal: "1",
            name: "İsrail şekeli",
            value: "0.4837"
        },
        SGD: {
            code: "SGD",
            nominal: "1",
            name: "Sinqapur dolları",
            value: "1.2527"
        },
        SDR: {
            code: "SDR",
            nominal: "1",
            name: "SDR (BVF-nun xüsusi borcalma hüquqları)",
            value: "2.3989"
        },
        JPY: {
            code: "JPY",
            nominal: "100",
            name: "Yapon yeni",
            value: "1.5176"
        },
        PLN: {
            code: "PLN",
            nominal: "1",
            name: "Polşa zlotası",
            value: "0.4713"
        },
        AUD: {
            code: "AUD",
            nominal: "1",
            name: "Avstraliya dolları",
            value: "1.2845"
        },
        SAR: {
            code: "SAR",
            nominal: "1",
            name: "Səudiyyə Ərəbistanı rialı",
            value: "0.4534"
        },
        BRL: {
            code: "BRL",
            nominal: "1",
            name: "Braziliya rialı",
            value: "0.5220"
        },
        ARS: {
            code: "ARS",
            nominal: "1",
            name: "Argentina pesosu",
            value: "0.0973"
        },
        UAH: {
            code: "UAH",
            nominal: "1",
            name: "Ukrayna qrivnası",
            value: "0.0642"
        },
        DKK: {
            code: "DKK",
            nominal: "1",
            name: "Danimarka kronu",
            value: "0.2680"
        },
        EUR: {
            code: "EUR",
            nominal: "1",
            name: "Avro",
            value: "1.9941"
        },
        MXN: {
            code: "MXN",
            nominal: "1",
            name: "Meksika pesosu",
            value: "0.0898"
        },
        ZAR: {
            code: "ZAR",
            nominal: "1",
            name: "Cənubi Afrika randı",
            value: "0.1211"
        },
        CHF: {
            code: "CHF",
            nominal: "1",
            name: "İsveçrə frankı",
            value: "1.7189"
        },
        HKD: {
            code: "HKD",
            nominal: "1",
            name: "Honq Konq dolları",
            value: "0.2176"
        },
        AED: {
            code: "AED",
            nominal: "1",
            name: "BƏƏ dirhəmi",
            value: "0.4629"
        },
        USD: {
            code: "USD",
            nominal: "1",
            name: "ABŞ dolları",
            value: "1.7002"
        }
    }
}