{"_id":"@allratestoday/snb-exchange-rate","_rev":"12-21c5509dd6a887febf4f352821acd163","name":"@allratestoday/snb-exchange-rate","dist-tags":{"latest":"1.3.5"},"versions":{"1.0.2":{"name":"@allratestoday/snb-exchange-rate","version":"1.0.2","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.0.2","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"0d7b11e3f109dc0a48ab815994cc197eb0262745","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.0.2.tgz","fileCount":6,"integrity":"sha512-/6IrhUcmI54DlPX3ZOmt2ytkWv/iak9AUB9YMn53VxPuXfwqWvj0SwaTiOsg4uoxqztdPUBjlod+L0uJjwsszw==","signatures":[{"sig":"MEUCIBi8td8x/GvCOT6GVNBZQiAxFlc0r4S0dDA9SKY3cymjAiEAjlYFopLyFjeNT5GlCRCl96+4Ki4Z0GyUwgxrNURKrrU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10279},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"b2c3c9e96ca8da4ad1a1351ee5e2300c2d81ff7d","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) daily exchange rates — ~25 (monthly) currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.0.2_1786034538903_0.39209148835928187","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@allratestoday/snb-exchange-rate","version":"1.1.0","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.1.0","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"c6101961ea3d9bfe8129d7683cb7fbdf96ee9220","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.1.0.tgz","fileCount":6,"integrity":"sha512-zAaYS0qDoA0d2ZM68ShH/TiaWs/iEM+ZS67QKuH9KI4DwqpIxBYmVyxQNaQwNE5rxVrwO+BKB1GupHC1otvndw==","signatures":[{"sig":"MEYCIQDspGi5zWFuUpM0l+jriOcTBbKxFIPoXldJbCjmbTqMTgIhAMYFVPr5hVclj0wu5AvSHj0I/CEz4ADyYdpggOn8IhCL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10689},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"065d61564d60cc45fa34b5c13460904bc5c2a2f8","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.1.0_1786461158101_0.35507844888181594","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@allratestoday/snb-exchange-rate","version":"1.1.2","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.1.2","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"84cf5bf0c35ae9dc1e48f71890a065ac2ed96254","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.1.2.tgz","fileCount":6,"integrity":"sha512-HZoMOli7u/EOwWnwVb0Zxoz/z9Fwxlie3nROWjn4GkIKprYex3ZAcS9M8CkvkZHGwmvyt5Ldg3U14R7slsq4kw==","signatures":[{"sig":"MEQCIC6vDi/C8p7T6EzUSIfyKe+ko1f0b7nUjtTgqd2fYIFEAiBe9X3qwSy2cEM53eLJsb9V0lJCQBs+MsoOJ8dALPE5iw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10689},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"cdfbc0e1508ee9990148b815c26e0a144e5d3b57","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.1.2_1786463406511_0.4183422852682228","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@allratestoday/snb-exchange-rate","version":"1.2.0","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.2.0","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"44b113961b0bc42dd3bf33755648d8694ad4e1c1","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.2.0.tgz","fileCount":6,"integrity":"sha512-iq1HcyOUlRKQGnIPo0etzBT9AON510ce5X8sUNUGhCUF3PlloRTau/CR+kMY0bLH81q+AojEhHEW/5MjY+jN7g==","signatures":[{"sig":"MEUCIQDcSfccBlPhmCiVIxQwQ1DXBPwVN0Ecz9TC74SrNdzLsAIgN0HdKxRzGcJE97T4lBm+9bLIoaH0x9RvGCTtzvobM8w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16569},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"0ef6cd5111bb9e524bf9f257652afa77e17a9109","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.2.0_1786467366657_0.07507234472549928","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@allratestoday/snb-exchange-rate","version":"1.2.2","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.2.2","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"0aa11d7b70774fcee9b77cd4110b5c5d9196fb0c","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.2.2.tgz","fileCount":6,"integrity":"sha512-537XnWwuSWjXtsv3JMo1x2aAeDfZfxyeRwMn2+qIPb90qs4+Z5gWb2YlBheYGj5l8jVcTm2RpoPKXX0l+7zQRw==","signatures":[{"sig":"MEQCIEPFAJhzhtdbNP3yDZttAGOwbaJV0U97mfa1J70HuDiiAiBkmYzfA2lEWA3TeQiCq6wdjauOUKIVtFmCjZFKsMe8ow==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17018},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"e5a956fd87b9d6f36bfb70e8b4a1840285704192","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.2.2_1786470380483_0.07343284051666377","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@allratestoday/snb-exchange-rate","version":"1.2.3","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.2.3","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"8392c233bed78aecb57ccf8f4fad589599ffaceb","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.2.3.tgz","fileCount":6,"integrity":"sha512-mBMusC+CnjLDtj1SNu5d6T+jP6TaHxwCNnV6qVpOYWjyN/gqWcdflugC+U4wSWTVDnETRDj2M/mxNMjm3nFLsg==","signatures":[{"sig":"MEQCIHMTDlR6uVEi85Y9nvh4MskeUoGxIq6lMyU7VlzC5ogXAiAxjc52C2ETdRESVUMw6y5b2UaXOzO0AToEQAGIRFt9wg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17250},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"5fa70bd36c9b9b7293480f42c465b9c422aefad2","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.2.3_1786648631302_0.5636472656500711","host":"s3://npm-registry-packages-npm-production"}},"1.2.7":{"name":"@allratestoday/snb-exchange-rate","version":"1.2.7","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.2.7","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"ba2a4e643b5abd57c0b4e614aa80e5eda2b413ba","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.2.7.tgz","fileCount":6,"integrity":"sha512-nOyFAqoZVh8Xx+FAXtKRurA0YewivRomnYOyp+6HN8ArLlJ8qxl2yDZBhRR/v7/FE6dH+IAfw6uEPXCt3aV3XQ==","signatures":[{"sig":"MEUCIAMPKvYuCpUjX142gurMeEfys13TW/BZq+OiHKjZUQViAiEA4lPsu1ER6P6cdd2OTXiB7wDF0jWwxEeR1C8BF9AKLNE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17250},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"0bdc92d850f026c2ce3ab23033ab006807b0ecfc","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.2.7_1787567144315_0.7784950333750251","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@allratestoday/snb-exchange-rate","version":"1.3.0","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.3.0","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"18c82930cffa7e0f52bd8b6795a525384844bc12","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.3.0.tgz","fileCount":6,"integrity":"sha512-3mBnwTbdgkEalDPXSvHqalA68HJs03T/hHPaarBh1bgsFVouSv80892NFfagxyfS0rZ6N62aogyBmaX6Ozc2Nw==","signatures":[{"sig":"MEQCIHyzwPe5aDaAlaOxeKjmLzCCZHsQ1oftmO7bsWfjs0E2AiB5lhsCcJ6VVRELATcX3AX2GwwP9nKBFMClECzX9hYoPQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17798},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"ec4d6bcf08cf485c7ab237f12d27e3d5a0f97e14","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.3.0_1788977251846_0.11070139986282035","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@allratestoday/snb-exchange-rate","version":"1.3.1","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.3.1","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"085d117cc2a618ee926fab6b256c6b535484da30","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.3.1.tgz","fileCount":6,"integrity":"sha512-OX27oVpBtZvLtauIj3NpX0hsOD2L6DAFxfwa4dp1n6qjZJdJeHcsgjgPFdRgXXte+fIGKipXJC86xXGbBnZ6wg==","signatures":[{"sig":"MEYCIQDpIXuR5gAYZjCVUO9GZHeLLDUuyHSwLd/zIcLoRXYthAIhAIL3CnTH0tAJjJYom9YwESrbe0tVZ4AK01SgHPFA66js","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21589},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"fc26fa33ba7dd14ed15e95764a0cdb2b1355358f","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.3.1_1789650320566_0.8182285464776682","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"@allratestoday/snb-exchange-rate","version":"1.3.3","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.3.3","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"61054316d2524803761d05893f3a74a34b622751","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.3.3.tgz","fileCount":6,"integrity":"sha512-ipe+HCqcZqu+3WTCVoyc6hcpY+0r9hRGntCThEmYqruKx7Gzg/7onAvcRpIAOgUnYyQ/zbBHn+l7bx5WTXVhBA==","signatures":[{"sig":"MEYCIQCL0fpBbDq8PrbILnsHgK/xhALfRYTMg4yRczowQdM1nAIhANnc90KLFcTABhElYHhiMIh4onZqCdudrY4x5XRl4khD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGKXy1PvEZHo7xfrWTfNNhb+Kq4EGboMNQ7yGo/+kIbjAiBJpnQxcpDL6WYKV/aMlEKSceh+sE6313WEvexr93Q+cA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21586},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"ca0b6b268a0b3c562dedb06b2ec12ac8815a6a05","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.3.3_1790770502067_0.09628461897269758","host":"s3://npm-registry-packages-npm-production"}},"1.3.4":{"name":"@allratestoday/snb-exchange-rate","version":"1.3.4","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","_id":"@allratestoday/snb-exchange-rate@1.3.4","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"f22103766357bd09524fed532a204aa370076e2e","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.3.4.tgz","fileCount":6,"integrity":"sha512-bCzuUbPOPaKDxJPmjJWS3Jo+hUoUTtYAXoL5RScZDJM/NQVxfdbRkPvByp01aEpcMccDPY/R9Y9SBeCRDDMSpw==","signatures":[{"sig":"MEQCIGn78MG1rYdSrFqmMTqZS6zm7/PdsEg66i2ScKW3GNKMAiBeCuFybQ6wsfQ6xgB4rhsLP6JY86zDJq+wJ7H4xmL1kA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCRaJ3T5BqUhgvu5KP25qdHvSau45dJOj4ekuweXQkLWAIgRhqfTv/k6wewF1JQIRk6Eip3EUGr02jZdrdRpn3K9DU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21985},"main":"./index.cjs","type":"module","types":"./index.d.ts","module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"79b405ca4251d0e8c85b00c9f6c63206e5e3dab3","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/snb-exchange-rate_1.3.4_1790851610547_0.5687744749976589","host":"s3://npm-registry-packages-npm-production"}},"1.3.5":{"_id":"@allratestoday/snb-exchange-rate@1.3.5","bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"dist":{"shasum":"8e32d1124f586c30c82283fa736500f664ef3d57","tarball":"https://registry.npmjs.org/@allratestoday/snb-exchange-rate/-/snb-exchange-rate-1.3.5.tgz","fileCount":6,"integrity":"sha512-YoZL2wFPo50X7LBRrxNw3+9v6vN9PeY8OZ3h0yTGceY1HyB00/DC1TbDiQKXDCfg3KmstyADI3ctFdDqd5DmtA==","signatures":[{"sig":"MEUCIQDjz7KiamQljIQJetIUUbWbx2nOQ97yZOt9vmMOnmJljQIgWmDWithfcIQ+GenNiXgkBuJEdINECJVIDPt3xDXqssM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDBAzzAlacj/r4N1avDsGShQlU66dcD+Nlnfm13S05XmgIhAILJ3KYZWQftkv0gPMaksryhbjonAcN54gY4fFwh+zsK"}],"unpackedSize":21985},"main":"./index.cjs","name":"@allratestoday/snb-exchange-rate","type":"module","types":"./index.d.ts","author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"module":"./index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.cjs"}},"gitHead":"96538305fe3410109ec8f078656cb344ea3a301a","license":"MIT","version":"1.3.5","_npmUser":{"name":"chathurangac8","email":"basnayakac8@gmail.com"},"homepage":"https://allratestoday.com/central-bank-rates-api/snb/","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"_npmVersion":"9.2.0","description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","directories":{},"maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/snb-exchange-rate_1.3.5_1791322543760_0.33691990802167227"}}},"time":{"created":"2026-08-06T16:42:18.749Z","modified":"2026-10-06T21:35:44.053Z","1.0.2":"2026-08-06T16:42:19.039Z","1.1.0":"2026-08-11T15:12:38.302Z","1.1.2":"2026-08-11T15:50:06.649Z","1.2.0":"2026-08-11T16:56:06.795Z","1.2.2":"2026-08-11T17:46:20.622Z","1.2.3":"2026-08-13T19:17:11.504Z","1.2.7":"2026-08-24T10:25:44.461Z","1.3.0":"2026-09-09T18:07:31.971Z","1.3.1":"2026-09-17T13:05:20.705Z","1.3.3":"2026-09-30T12:15:02.176Z","1.3.4":"2026-10-01T10:46:50.632Z","1.3.5":"2026-10-06T21:35:43.848Z"},"bugs":{"url":"https://github.com/AllRates-Today/snb-exchange-rate/issues"},"author":{"url":"https://allratestoday.com","name":"AllRatesToday","email":"hello@allratestoday.com"},"license":"MIT","homepage":"https://allratestoday.com/central-bank-rates-api/snb/","keywords":["snb","swiss","national","bank","exchange-rate","exchange-rates","currency","forex","fx","chf","central-bank","official-rates","switzerland","api","typescript"],"repository":{"url":"git+https://github.com/AllRates-Today/snb-exchange-rate.git","type":"git"},"description":"Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.","maintainers":[{"name":"chathurangac8","email":"basnayakac8@gmail.com"}],"readme":"# Swiss National Bank Exchange Rates API — snb-exchange-rate\n\n[![npm version](https://img.shields.io/npm/v/@allratestoday%2Fsnb-exchange-rate.svg)](https://www.npmjs.com/package/@allratestoday/snb-exchange-rate)\n[![license](https://img.shields.io/npm/l/@allratestoday%2Fsnb-exchange-rate.svg)](https://github.com/AllRates-Today/snb-exchange-rate/blob/main/LICENSE)\n[![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/snb-exchange-rate)\n[![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)\n\n**Official Swiss National Bank (Switzerland) monthly exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Swiss National Bank itself prints, every month.**\n\n## 🚀 Why this client?\n\n- 🏛️ **Official published rates** — Swiss National Bank's own table, with the publisher's own `rate_date` on every response\n- 📅 **History back to 1914** — point-in-time tables and daily series for any past date\n- 🔀 **Published vs derived, always flagged** — computed inverse/cross pairs carry `derived: true`, never mixed with official prints\n- ⚡ **Zero dependencies** — pure ESM + CJS over global `fetch`; Node 18+, Bun, Deno, and edge runtimes\n- 🔷 **Type-safe** — full TypeScript definitions shipped with the package\n- 🧾 **Compliance-grade metadata** — `rate_type`, publication date, and source disclaimer on every response\n\n> **Official rate, not mid-market:** every value here is a number Swiss National Bank itself published, fixed once printed and carrying the central bank's own `rate_date` — what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the [mid-market API](https://allratestoday.com/docs/) or [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk). The two can diverge by several percent.\n\n## ⚡ Try it without a key\n\nThe latest Swiss National Bank table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:\n\n```bash\ncurl \"https://allratestoday.com/api/open/central-bank/snb?source=EUR&target=CHF\"\n```\n\n```js\nconst r = await fetch('https://allratestoday.com/api/open/central-bank/snb').then((x) => x.json());\nconsole.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key\n```\n\nThe open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.\n\n## 🔑 Get your API key\n\nGet a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.\n\n## 📦 Installation\n\n```bash\nnpm install @allratestoday/snb-exchange-rate\n```\n\n```bash\nyarn add @allratestoday/snb-exchange-rate\n```\n\n```bash\npnpm add @allratestoday/snb-exchange-rate\n```\n\nRequires Node 18+ (global `fetch`); also runs on Bun, Deno and edge runtimes. Scoped mirror of [`snb-exchange-rate`](https://www.npmjs.com/package/snb-exchange-rate) — same code, same versions.\n\n## 🏁 Quick start\n\n```js\nimport { getRate } from '@allratestoday/snb-exchange-rate';\n\nconst pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });\nconsole.log(pair.rate, pair.rate_date); // the official Swiss National Bank rate, on the central bank's own date\n```\n\n## 📚 API reference\n\n- [Latest pair rate](#latest-pair-rate) — one pair from the latest published table\n- [Full published table](#full-published-table) — everything the central bank printed, in one call\n- [Table for a date](#table-for-a-date) — the official table for an invoice or filing date\n- [Daily time series](#daily-time-series) — one pair across a date range\n\n---\n\n### Latest pair rate\n\nFree plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *Published vs derived rates* below).\n\n```js\nconst pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });\n```\n\n**Response:**\n\n```javascript\n{\n  bank: 'snb',\n  name: 'Swiss National Bank',\n  rate_date: '2026-09-30',   // Swiss National Bank's own publication date\n  source: 'EUR',\n  target: 'CHF',\n  rate: 0.94312,\n  rate_type: 'monthly_average',\n  derived: false,\n  method: 'published',\n  disclaimer: 'Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned.'\n}\n```\n\n### Full published table\n\nFree plan and up. The complete table for the latest publication date.\n\n```js\nimport { getLatestRates } from '@allratestoday/snb-exchange-rate';\n\nconst table = await getLatestRates({ apiKey: 'art_live_...' });\nconsole.log(table.rate_date, table.rates.length);\n```\n\n**Response:**\n\n```javascript\n{\n  bank: 'snb',\n  name: 'Swiss National Bank',\n  rate_date: '2026-09-30',\n  rates: [\n    { \"base\": \"EUR\", \"quote\": \"CHF\", \"type\": \"monthly_average\", \"value\": 0.94312 },\n    // … the rest of the published table (26 currencies vs CHF)\n  ],\n  disclaimer: '…'\n}\n```\n\n### Table for a date\n\nPaid plans. The official table for any date since 1914 — weekends and holidays return the most recent published date, flagged via `published_on_requested_date`, which is exactly the in-force rate a filing needs.\n\n```js\nimport { getRatesForDate } from '@allratestoday/snb-exchange-rate';\n\nconst day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });\n// Optionally narrow to one pair:\nconst one = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...', source: 'EUR', target: 'CHF' });\n```\n\n**Response:**\n\n```javascript\n{\n  bank: 'snb',\n  requested_date: '2026-06-30',\n  rate_date: '2026-06-30',                // the date actually published\n  published_on_requested_date: true,      // false when a weekend/holiday fell back\n  rates: [ /* the full table for that date */ ],\n  disclaimer: '…'\n}\n```\n\n### Daily time series\n\nPaid plans. One resolved rate per publication date — ready for charting, revaluation runs, or audit workpapers.\n\n```js\nimport { getHistory } from '@allratestoday/snb-exchange-rate';\n\nconst series = await getHistory(\n  { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-09-30' },\n  { apiKey: 'art_live_...' }\n);\n```\n\n**Response:**\n\n```javascript\n{\n  bank: 'snb',\n  source: 'EUR',\n  target: 'CHF',\n  from: '2026-01-01',\n  to: '2026-09-30',\n  count: 152,\n  rates: [\n    // one entry per publication date\n    { date: '2026-09-30', rate: 0.94312, rate_type: 'monthly_average', derived: false, method: 'published' },\n    // …\n  ],\n  disclaimer: '…'\n}\n```\n\nPass `{ symbol: 'EUR' }` instead of `source`/`target` to get the raw published rows for one currency (all rate types, no pair resolution).\n\n---\n\n## 🗺️ Currencies covered\n\nSwiss National Bank currently publishes rates covering **26 currencies** against the CHF (as of the latest table):\n\n🇦🇷 `ARS` · 🇦🇺 `AUD` · 🇧🇷 `BRL` · 🇨🇦 `CAD` · 🇨🇳 `CNY` · 🇨🇿 `CZK` · 🇩🇰 `DKK` · 🇪🇺 `EUR` · 🇬🇧 `GBP` · 🇭🇰 `HKD` · 🇭🇺 `HUF` · 🇯🇵 `JPY` · 🇰🇷 `KRW` · 🇲🇽 `MXN` · 🇲🇾 `MYR` · 🇳🇴 `NOK` · 🇳🇿 `NZD` · 🇵🇱 `PLN` · 🇷🇺 `RUB` · 🇸🇪 `SEK` · 🇸🇬 `SGD` · 🇹🇭 `THB` · 🇹🇷 `TRY` · 🇺🇸 `USD` · `XDR` · 🇿🇦 `ZAR`\n\n## 🏛️ Source\n\nThe Swiss National Bank publishes official franc exchange rates through its data portal. The SNB publishes monthly averages (no daily official series exists), with history reaching back to 1914 — one of the longest official exchange rate records anywhere.\n\n- Publisher's own page: [Exchange rates — SNB data portal](https://data.snb.ch/en/topics/ziredev/cube/devkum) · [www.snb.ch](https://www.snb.ch)\n- Publication: every month; the exact schedule, freshness status and any current delay are on the [Swiss National Bank rates page](https://allratestoday.com/central-bank-rates-api/snb/)\n- Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)\n\n## 🧭 Reading the numbers\n\n- `value` is always **quote currency per 1 unit of base currency** (`base: \"EUR\", quote: \"USD\", value: 1.15` means 1 EUR = 1.15 USD).\n- Swiss National Bank quotes **CHF per 1 unit of foreign currency** (e.g. `base: \"USD\", quote: \"CHF\"` means CHF per one US dollar).\n- Need the other way round? Ask `getRate(target, source)` and the API inverts or crosses for you, flagged `derived: true` — never divide a published rate yourself in a compliance workflow.\n- `rate_type` tells you which of the central bank's series a row belongs to (`monthly_average` here); some publishers print buy/sell or several fixings for the same pair.\n\n## 🧩 ERP & accounting systems\n\nLoading the official Swiss National Bank rate into an accounting system is a supported workflow, not a hack. Step-by-step guides with the direction each system expects:\n\n- [Dynamics 365 Business Central](https://allratestoday.com/docs/integrations/business-central/) — built-in Currency Exchange Rate Service, no code\n- [Xero](https://allratestoday.com/docs/integrations/xero/) · [QuickBooks Online](https://allratestoday.com/docs/integrations/quickbooks/) · [SAP S/4HANA and ECC](https://allratestoday.com/docs/integrations/sap/) · [Odoo](https://allratestoday.com/docs/integrations/odoo/)\n\nThe same keyed endpoints return `?format=csv`, `?format=xml` and `?format=xlsx`, and accept the key as `?api_key=` on the URL for importers that cannot send headers:\n\n```bash\ncurl \"https://allratestoday.com/api/v1/central-bank/snb/latest?format=xml&api_key=art_live_...\"\n```\n\n## 🤖 AI agents\n\n- MCP server: `npx -y @allratestoday/central-bank-mcp` (stdio) or the hosted endpoint `https://allratestoday.com/api/mcp` — tools for official rates, history, cross-bank comparison and publication calendars\n- Already using the general SDK or MCP server? Since 2026-10-01 [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk) 1.4+ has `officialRates('snb')` and [`@allratestoday/mcp-server`](https://www.npmjs.com/package/@allratestoday/mcp-server) 0.6+ has a `get_official_rates` tool — both return this source's latest table with no key, so you can add it without a second dependency\n- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)\n\n## ⚖️ Published vs derived rates\n\nIf Swiss National Bank does not print a pair directly, the API resolves it from the central bank's own table and says so — official and computed values are never confused:\n\n| `method` | `derived` | Meaning |\n| --- | --- | --- |\n| `published` | `false` | The central bank printed this pair directly |\n| `inverse` | `true` | Computed as 1 ÷ the published opposite direction |\n| `cross` | `true` | Computed via CHF from two published rates |\n\n## 🛡️ Error handling\n\nErrors are thrown as `Error` with `status` (HTTP code) and `body` (the API's JSON error) attached:\n\n```js\ntry {\n  const pair = await getRate('EUR', 'XXX', { apiKey: 'art_live_...' });\n} catch (err) {\n  console.log(err.message); // human-readable reason\n  console.log(err.status);  // e.g. 404\n}\n```\n\n| Status | Meaning |\n| ------ | ------- |\n| — | Missing `apiKey` (thrown before any request) |\n| `400` | Malformed date or parameters |\n| `401` | Invalid API key |\n| `403` | Endpoint needs a [paid plan](https://allratestoday.com/pricing/) (historical dates & series) |\n| `404` | Pair or date range not covered by Swiss National Bank |\n| `429` | Monthly quota exceeded |\n\n## 🔷 TypeScript\n\nFull definitions ship with the package — no `@types` install:\n\n```ts\nimport type { LatestRates, PairRate, DatedRates, RateEntry, HistoryQuery, RequestOptions } from '@allratestoday/snb-exchange-rate';\n```\n\n## 📦 CommonJS\n\n```javascript\nconst { getRate } = require('@allratestoday/snb-exchange-rate');\n\ngetRate('EUR', 'CHF', { apiKey: 'art_live_...' }).then((pair) => console.log(pair.rate));\n```\n\n## 💡 Quota tips\n\n- Rates change once a month — cache the published table locally and a small monthly quota goes a long way.\n- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.\n\n## 📖 Methods reference\n\n| Method | Plan | Description |\n| ------ | ---- | ----------- |\n| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the published table |\n| `getLatestRates({ apiKey })` | Free | The central bank's full latest published table |\n| `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |\n| `getHistory({ symbol \\| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 1914 |\n\n## 📥 Bulk data (no key)\n\nNeed the whole archive rather than an API call? The same published tables are mirrored daily as open data:\n\n- Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/snb.csv`)\n- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)\n- CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/snb/latest.json`\n\n## 🔗 Links\n\n- [Swiss National Bank rates page](https://allratestoday.com/central-bank-rates-api/snb/) — live table, publication cadence, FAQ\n- [All central bank sources](https://allratestoday.com/central-bank-rates-api/)\n- [Package docs on the site](https://allratestoday.com/docs/sdk/snb-exchange-rate/) · [ERP integration guides](https://allratestoday.com/docs/integrations/)\n- [API documentation](https://allratestoday.com/docs/#central-bank) · [Interactive reference](https://allratestoday.com/api-reference/) · [Methodology](https://allratestoday.com/official-rates-methodology/)\n- [Register (free)](https://allratestoday.com/register) · [Pricing](https://allratestoday.com/pricing/)\n- [GitHub](https://github.com/AllRates-Today/snb-exchange-rate)\n\n## 📜 License\n\nMIT\n","readmeFilename":"README.md"}