{"_id":"@dsanchezcr/colonesexchangerate","_rev":"9-d36b4ad6e397318f9a07d58456287b06","name":"@dsanchezcr/colonesexchangerate","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"@dsanchezcr/colonesexchangerate","version":"1.0.0","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@1.0.0","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://github.com/dsanchezcr/ColonesExchangeRate#readme","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"452fd5ce9c29e5313986f7e4457059d7d26e59cf","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-1.0.0.tgz","fileCount":3,"integrity":"sha512-iu8qcVXRLlWjKOs/GAcjT7QtO3w41lKtYLATNIOWAvybhAd6mPTG+CvCs5zxIFIpm8O/DqYt2hJo/zqrqe98lQ==","signatures":[{"sig":"MEQCIGle/xxAdoPuvpzlfo/T4zRtHEtI3dYM5wd2ewXIbwDsAiA2Ryw2eogkIxP1Ps8zGl7F2udUR6enRKhhiY2q5Qatwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5427},"main":"currencyconverter.js","gitHead":"857b9243ca962f174908b40e5f33b2b35d5fe5e3","scripts":{"test":"jest","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","axios":"^1.6.2"},"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_1.0.0_1700280886113_0.1380432300272023","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@dsanchezcr/colonesexchangerate","version":"1.0.1","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@1.0.1","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://github.com/dsanchezcr/ColonesExchangeRate#readme","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"2f652e0d97867748270aafb08579530cfd2b75f9","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-1.0.1.tgz","fileCount":4,"integrity":"sha512-inszmYVxUIx3cAcC09nA8c5WU2eH8AjJgh60bQWfEBX4KcP2uyLdUD/T90RXsgzcP57nrdRP6Q7vB7bEQh7KtQ==","signatures":[{"sig":"MEUCIQDQpLAWVY+XgcfKhjtYdRNqjbBM4taINyFsAhEKdLj4LAIgXzZ2YTTfW8QfABY5RCnrmIDz1WTfnlTHuFJY4fx0yR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9447},"main":"currencyconverter.js","gitHead":"7202d9e9fe5d8cde559d7f073fff58110aa77ea8","scripts":{"test":"jest","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","axios":"^1.6.2"},"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_1.0.1_1700281578486_0.3057435846069676","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@dsanchezcr/colonesexchangerate","version":"1.0.2","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@1.0.2","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://github.com/dsanchezcr/ColonesExchangeRate#readme","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"1153ae6285ae0555f12651c22ef581b7a801157c","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-1.0.2.tgz","fileCount":4,"integrity":"sha512-0E7TBdRzoMkrisKtqGY2P4i32T+A6v6bxPXVm0IjpzG5efYAsVm36295jSr+OD/Ib3Fr6MKWT/Y82CvFLk6qxQ==","signatures":[{"sig":"MEUCICivvSjQ12hqfkPkpYnzyMpv8ipMEpBvIs/ARYQ5n2ElAiEA7w66diDm4+j1LM7JCtAn0kmx26am2GtnYYM3xCgXdbI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9491},"main":"colonesexchangerate.js","type":"module","gitHead":"ba5d46956ef74a666b789db1144201ccb9067977","scripts":{"test":"jest","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","axios":"^1.6.2"},"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_1.0.2_1700287189491_0.18517821829210934","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@dsanchezcr/colonesexchangerate","version":"1.1.0","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@1.1.0","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"22da3d5ce109566afd7ead328631866c24169457","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-1.1.0.tgz","fileCount":4,"integrity":"sha512-z30FRh7tCw6GbpQnX06EAPjnTNsZqirAvnK5iAym+i0a7kSAc+RbGuTylbtOKoT22raXjzOTL+FKQU3iD5qcIA==","signatures":[{"sig":"MEYCIQCYJ/GzWvJ7XMlFUqlmrg/CYaC3mLHMyAZs0Y6y9uvBuQIhAPzzWbfUol/vr7j+fjiSHN+/RRP/aaeZlCiT6eji/M/R","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10070},"main":"colonesexchangerate.js","type":"module","gitHead":"b693b0851beea507708e1508617e6243ee4a7a13","scripts":{"test":"node colonesexchangerate.test.js","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"axios":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_1.1.0_1700291368531_0.9218261927951714","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@dsanchezcr/colonesexchangerate","version":"1.1.1","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@1.1.1","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"9089082e5e95f920d902ab0bb02daa9a9587bbc3","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-1.1.1.tgz","fileCount":4,"integrity":"sha512-OFve+3/zub6QnI1j0j/RJsXopjndbBEXifNEYUM6PLXX48HwQui8JpL9GxBO2e4YVUNWrPnCQkAWLc4O0grcUQ==","signatures":[{"sig":"MEYCIQDSTEK+kWZmPrFVIcnS7Ep0g3ppip/4szXfRk2KTkXf4gIhAIsBZmAhjPxKwcFTxGBOpynmILB9dB3azfgx0NBpZeOA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10072},"main":"colonesexchangerate.mjs","type":"module","gitHead":"8b60b85d25d483a0de8ebd9195eca959391a5cd1","scripts":{"test":"node colonesexchangerate.test.js","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"axios":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_1.1.1_1700292912911_0.3167576854129768","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@dsanchezcr/colonesexchangerate","version":"2.0.0","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@2.0.0","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"9a4ce64a59a47019f484d0baa9d0a5a03fe30097","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-2.0.0.tgz","fileCount":4,"integrity":"sha512-jULEQ+5L8mg680CjwSZzHhl8TTbdq002hnOhcViy6sqX2esv6QSg3IJkPQxdSVMcppvqtjTWBnQ1rdvZFY9LPQ==","signatures":[{"sig":"MEQCIEOlmYNsCMm712jugOeB9+Ml0cyjSyC8znq+YecBU1esAiByQ3u3DAdltdKlQN59hbjLU2D/4Reg5tD+ZAjqNoCPjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12304},"main":"ColonesExchangeRate.mjs","type":"module","gitHead":"f241d46ecedb535fd337f0e63693222ec8393d64","scripts":{"test":"node colonesexchangerate.test.js","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"axios":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_2.0.0_1700354883404_0.36892661320190756","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@dsanchezcr/colonesexchangerate","version":"2.0.1","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@2.0.1","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"dce0bf208c6f1a368522785eb7c53cab7738395f","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-2.0.1.tgz","fileCount":4,"integrity":"sha512-7VtDvSk+DNqhX867iPf1G3JznAST5rx6z8XTI7d2IPuSMuz5Qgq5U+jWSZlB5DD1JQqJaoLxKzhsBnrS7NquVw==","signatures":[{"sig":"MEUCIEn1WswYYX8IDwkpzbsOrSQdqy6zWPKAQC+ui5szoaTOAiEAyVBx+xM2hkHD4QLsstpdZjXIsKh6cMcfgKh7WSCssPc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12294},"main":"ColonesExchangeRate.mjs","type":"module","gitHead":"10cd9fa8bf6913d710b3fac95ed22878479fc18e","scripts":{"test":"node colonesexchangerate.test.js","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"axios":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_2.0.1_1700516725980_0.28113311599875357","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@dsanchezcr/colonesexchangerate","version":"2.0.2","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","_id":"@dsanchezcr/colonesexchangerate@2.0.2","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"dist":{"shasum":"60dd99e277276c18fa73eaa38876b65c686b298d","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-2.0.2.tgz","fileCount":4,"integrity":"sha512-25kkQW01nDLlLHQpc4xXgrv87GCCkN8BFziJkNJJQ/0tlrQ1U8pUa3C0uTU/Oyx8FEITUn8MHInEVM2+Y82L4g==","signatures":[{"sig":"MEQCIHpmghSs6/XAsgxStpPHwnoF14mZOKrZgqmzKkZ0SNSWAiAHXEQ9r1QYC9hP2sLDHvNhmwGiHUIE2RAnxA4zAGM9nw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12294},"main":"colonesexchangerate.mjs","type":"module","gitHead":"69c8aaa89d3c0cdde23f7835f9e6dc27ef2884ad","scripts":{"test":"node colonesexchangerate.test.js","build":"echo 'No build step required'"},"_npmUser":{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"},"repository":{"url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git","type":"git"},"_npmVersion":"10.2.3","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","directories":{},"_nodeVersion":"21.2.0","dependencies":{"axios":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/colonesexchangerate_2.0.2_1700862224690_0.590698487404187","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@dsanchezcr/colonesexchangerate","version":"2.1.0","type":"module","description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","main":"colonesexchangerate.mjs","types":"colonesexchangerate.d.ts","exports":{".":{"import":"./colonesexchangerate.mjs","types":"./colonesexchangerate.d.ts"}},"engines":{"node":">=18.0.0"},"scripts":{"test":"node --test colonesexchangerate.test.js","build":"echo 'No build step required'"},"repository":{"type":"git","url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git"},"keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"author":{"name":"dsanchezcr"},"license":"MIT","bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","dependencies":{"axios":"^1.13.5"},"gitHead":"a81197bc02c04b6f9d77f368542520c6f8de8c03","_id":"@dsanchezcr/colonesexchangerate@2.1.0","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-hOanCJr2nc8TapyopIb4sfvWDlhuIl9NrTS4nXhYfJ+CzpRfQ1ALipOZo+RN2FT3QcLY21n69punRAMDRBcbNw==","shasum":"c1d15da0112cf63f890483095afbd9f5e85889f3","tarball":"https://registry.npmjs.org/@dsanchezcr/colonesexchangerate/-/colonesexchangerate-2.1.0.tgz","fileCount":4,"unpackedSize":15080,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dsanchezcr%2fcolonesexchangerate@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/yloqX4ugR5QIoHlLCc3I/E6ZFcIgnJsiKDcSrnEnwgIhALpIgScaV2LJGi9BHbxgkiEYJq3Ta36jIfOZgyr66zMh"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:888fe7b6-36f5-4cfd-9d4a-1bfbcdab16e7"}},"directories":{},"maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/colonesexchangerate_2.1.0_1771695944959_0.515142972500386"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-18T04:14:46.044Z","modified":"2026-02-21T17:45:45.689Z","1.0.0":"2023-11-18T04:14:46.288Z","1.0.1":"2023-11-18T04:26:18.762Z","1.0.2":"2023-11-18T05:59:49.677Z","1.1.0":"2023-11-18T07:09:28.703Z","1.1.1":"2023-11-18T07:35:13.118Z","2.0.0":"2023-11-19T00:48:03.583Z","2.0.1":"2023-11-20T21:45:26.189Z","2.0.2":"2023-11-24T21:43:44.908Z","2.1.0":"2026-02-21T17:45:45.098Z"},"bugs":{"url":"https://github.com/dsanchezcr/ColonesExchangeRate/issues"},"author":{"name":"dsanchezcr"},"license":"MIT","homepage":"https://dsanchezcr.github.io/ColonesExchangeRate","keywords":["colones","dollars","euros","currency-exchange","exchange-rate","costa-rica","CRC"],"repository":{"type":"git","url":"git+https://github.com/dsanchezcr/ColonesExchangeRate.git"},"description":"Currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the exchange rate API from Ministerio de Hacienda de Costa Rica.","maintainers":[{"name":"dsanchezcr","email":"dsanchezcr@outlook.com"}],"readme":"# Colones Exchange Rate NuGet & npm Packages\nThis repository contains a NuGet & npm packages to provide currency conversion from Colones (Costa Rica - CRC ₡) to Dollars (United States - USD $) and Euros (European Union - EUR €). It consumes the [API from Ministerio de Hacienda de Costa Rica](https://api.hacienda.go.cr/indicadores/tc) (The API is in Spanish).\n\n> Note: The API usually changes the response for the Euro exchange rate, during business hours, the response contains the exchange rate in dollars and colones, but after business hours, the response only contains the exchange rate in dollars. The ColonesExchangeRate packages handles this situation and returns the correct values.\n\n[![ColonesExchangeRate - CI/CD](https://github.com/dsanchezcr/ColonesExchangeRate/actions/workflows/workflow.yaml/badge.svg)](https://github.com/dsanchezcr/ColonesExchangeRate/actions/workflows/workflow.yaml)\n[![NuGet](https://img.shields.io/nuget/v/ColonesExchangeRate)](https://www.nuget.org/packages/ColonesExchangeRate)\n[![npm](https://img.shields.io/npm/v/@dsanchezcr/colonesexchangerate)](https://www.npmjs.com/package/@dsanchezcr/colonesexchangerate)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n![](https://raw.githubusercontent.com/dsanchezcr/ColonesExchangeRate/main/images/Icon.png)\n\n## Prerequisites\n- **NuGet**: .NET Standard 2.1 compatible runtime (e.g. .NET Core 3.0+, .NET 5+)\n- **npm**: Node.js 18.0.0 or later\n\n# Installation\nYou can install the ColonesExchangeRate package from [NuGet.org](https://www.nuget.org/packages/ColonesExchangeRate), [npmjs.com](https://www.npmjs.com/package/@dsanchezcr/colonesexchangerate) or [GitHub Packages](https://github.com/dsanchezcr?tab=packages&repo_name=ColonesExchangeRate).\n\n\n## NuGet Package\nTo install ColonesExchangeRate using NuGet, run the following command in the Package Manager Console:\n```dotnetcli\nInstall-Package ColonesExchangeRate\n```\n### Usage\nTo use ColonesExchangeRate, first create an instance of the class:\n\n```csharp\nvar converter = new ColonesExchangeRate();\nvar amount = 1000;\n\ndecimal dollarsToColones = await converter.DollarsToColones(amount);\ndecimal colonesToDollars = await converter.ColonesToDollars(amount);\ndecimal dollarsToEuros = await converter.DollarsToEuros(amount);\ndecimal eurosToDollars = await converter.EurosToDollars(amount);\ndecimal colonesToEuros = await converter.ColonesToEuros(amount);\ndecimal eurosToColones = await converter.EurosToColones(amount);\nvar dollarExchangeRate = await converter.GetDollarExchangeRate();\nvar euroExchangeRate = await converter.GetEuroExchangeRate();\n\nConsole.WriteLine($\"{amount} Dollars = {dollarsToColones} Colones\");\nConsole.WriteLine($\"{amount} Colones = {colonesToDollars} Dollars\");\nConsole.WriteLine($\"{amount} Dollars = {dollarsToEuros} Euros\");\nConsole.WriteLine($\"{amount} Euros = {eurosToDollars} Dollars\");\nConsole.WriteLine($\"{amount} Colones = {colonesToEuros} Euros\");\nConsole.WriteLine($\"{amount} Euros = {eurosToColones} Colones\");\n    \nConsole.WriteLine($\"Dollar exchange rate: {dollarExchangeRate.date} - Sale: {dollarExchangeRate.sale} - Purchase: {dollarExchangeRate.purchase}\");\nif (euroExchangeRate.colones != null)\n    Console.WriteLine($\"Euro exchange rate: {euroExchangeRate.date} - Dollars: {euroExchangeRate.dollars} - Colones: {euroExchangeRate.colones}\");\nelse\n    Console.WriteLine($\"Euro exchange rate: {euroExchangeRate.date} - Dollars: {euroExchangeRate.dollars}\");\n```\n\n#### Caching (Optional)\nTo avoid redundant API calls when performing multiple conversions, enable caching:\n\n```csharp\n// Cache exchange rates for 5 minutes\nvar converter = new ColonesExchangeRate(TimeSpan.FromMinutes(5));\n```\n\n#### CancellationToken Support\nAll methods accept an optional `CancellationToken`:\n\n```csharp\nusing var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));\nvar result = await converter.DollarsToColones(100, cts.Token);\n```\n\n#### Custom HttpClient\nYou can inject your own `HttpClient` (e.g. for use with `IHttpClientFactory`):\n\n```csharp\nvar converter = new ColonesExchangeRate(httpClient, TimeSpan.FromMinutes(5));\n```\nThe result will look similar to this:\n![Console Result](https://raw.githubusercontent.com/dsanchezcr/ColonesExchangeRate/main/images/ConsoleResult.jpg)\n\n> Note: Replace amount with the amount of currency you want to convert.\n\n## npm Package\n\nTo install ColonesExchangeRate using npm, run the following command in the command line of your project's root directory:\n\n```cli\nnpm i @dsanchezcr/colonesexchangerate\n```\n\n### Usage\n\nTo use ColonesExchangeRate, import the module:\n```javascript\nimport ColonesExchangeRate from '@dsanchezcr/colonesexchangerate';\n\nconst converter = new ColonesExchangeRate();\nconst amount = 1000;\n\nconst amountInColones = await converter.dollarsToColones(amount);\nconsole.log(`$${amount} is ₡${amountInColones}`);\n\nconst amountInDollars = await converter.colonesToDollars(amount);\nconsole.log(`₡${amount} is $${amountInDollars}`);\n\nconst amountInEuros = await converter.dollarsToEuros(amount);\nconsole.log(`$${amount} is €${amountInEuros}`);\n\nconst amountFromEuros = await converter.eurosToDollars(amount);\nconsole.log(`€${amount} is $${amountFromEuros}`);\n\nconst colonesToEuros = await converter.colonesToEuros(amount);\nconsole.log(`₡${amount} is €${colonesToEuros}`);\n\nconst eurosToColones = await converter.eurosToColones(amount);\nconsole.log(`€${amount} is ₡${eurosToColones}`);\n\nconst dollarRate = await converter.getDollarExchangeRate();\nconsole.log(`Dollar exchange rate: ${JSON.stringify(dollarRate)}`);\n\nconst euroRate = await converter.getEuroExchangeRate();\nconsole.log(`Euro exchange rate: ${JSON.stringify(euroRate)}`);\n```\n\n#### Caching (Optional)\nTo avoid redundant API calls when performing multiple conversions, enable caching:\n\n```javascript\n// Cache exchange rates for 5 minutes\nconst converter = new ColonesExchangeRate({ cacheTtlMs: 300000 });\n```\n\n#### TypeScript\nThe package includes TypeScript type definitions out of the box — no `@types` package needed.\nThe result will look similar to this:\n![npm console result](https://raw.githubusercontent.com/dsanchezcr/ColonesExchangeRate/main/images/npmConsoleResult.jpg)\n\n> Note: Replace amount with the amount of currency you want to convert.\n\nThe following methods return an object/tuple with exchange rate details: \n- `getDollarExchangeRate` / `GetDollarExchangeRate`: the date of the exchange rate, the sale rate, and the purchase rate.\n- `getEuroExchangeRate` / `GetEuroExchangeRate`: the date of the exchange rate, the dollars rate, and the colones rate.\n\n# API Reference\n\n| Method | Parameters | Returns | Description |\n|--------|-----------|---------|-------------|\n| `DollarsToColones` / `dollarsToColones` | `amount` | `decimal` / `number` | Converts USD to CRC |\n| `ColonesToDollars` / `colonesToDollars` | `amount` | `decimal` / `number` | Converts CRC to USD |\n| `DollarsToEuros` / `dollarsToEuros` | `amount` | `decimal` / `number` | Converts USD to EUR |\n| `EurosToDollars` / `eurosToDollars` | `amount` | `decimal` / `number` | Converts EUR to USD |\n| `ColonesToEuros` / `colonesToEuros` | `amount` | `decimal` / `number` | Converts CRC to EUR |\n| `EurosToColones` / `eurosToColones` | `amount` | `decimal` / `number` | Converts EUR to CRC |\n| `GetDollarExchangeRate` / `getDollarExchangeRate` | — | `(date, sale, purchase)` / `{date, sale, purchase}` | Gets current USD/CRC rate |\n| `GetEuroExchangeRate` / `getEuroExchangeRate` | — | `(date, dollars, colones)` / `{date, dollars, colones}` | Gets current EUR rate |\n\n> All NuGet methods also accept an optional `CancellationToken` parameter.\n\n# Contributing\nContributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing instructions, and guidelines.\n\n# License\nColonesExchangeRate is licensed under the MIT License. See the [LICENSE](/LICENSE) file for details.\n","readmeFilename":"README.md"}