{"_id":"@blooks/exchange-rates","_rev":"3-93cd6c364b41c23684f6bacfe1d2f7e1","name":"@blooks/exchange-rates","description":"Convert currencies according to historical rates.","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.3":{"name":"@blooks/exchange-rates","version":"0.1.3","description":"Convert currencies according to historical rates.","main":"src/coynverter.js","dependencies":{"async":"^0.9.0","coindesk-api":"^0.1.0","moment":"2.7.0","mongodb":"1.4.6","node-uuid":"1.4.2","request":"2.39.0","tracer":"0.7.3","underscore":"1.6.0","wait.for":"^0.6.6"},"devDependencies":{"standard":"^8.6.0"},"scripts":{"test":"exit 0;"},"repository":{"type":"git","url":"git+https://github.com/blooks/exchange-rates.git"},"keywords":["script"],"author":{"name":"coyno.com"},"license":"GPL","bugs":{"url":"https://github.com/blooks/exchange-rates/issues"},"homepage":"https://github.com/blooks/exchange-rates#readme","_id":"@blooks/exchange-rates@0.1.3","_shasum":"4db83a838e2271e7757f3364768147c6ddd6f1ae","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"blooks","email":"blooks@levinkeller.de"},"dist":{"shasum":"4db83a838e2271e7757f3364768147c6ddd6f1ae","tarball":"https://registry.npmjs.org/@blooks/exchange-rates/-/exchange-rates-0.1.3.tgz","integrity":"sha512-kVuC36Qksb8O5xBVcE4g9kCnw1uL0eapHiqM0mXlg26FVguu9HYWOvBwvub8pY8irrtoigjzdXhtUITpCd4fYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpd843dys/79Y9MjGzc+27nGZ8gorbColEduAoluOojgIhAJU4AZtElRv3CSyH05AWt6M62B4zicEoh8JLDig1arrW"}]},"maintainers":[{"name":"blooks","email":"blooks@levinkeller.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/exchange-rates-0.1.3.tgz_1483703973114_0.6230212165974081"}}},"readme":"# coynverter\n\nA npm package to convert any currency based on public available exchange rate data.\n\n**Install the dependencies**\n  $> npm install\n**To test the package**\n\n  $> npm test\n\n**API**\n\n```javascript\n  var coynoverter = require('../src/coynverter.js') \n  coynoconverter = new Coynverter(mongourl, collectionWhereToWriteData);\n\n  /**\n   * update the information available on the database for a provided currency\n   * @param  {String}   currency           the currency to find the conversion rate\n   * @param  {Function} callback           return two possible objects, error and result of the operation\n   * @return {undefined}                   not return value\n   */\n  coynoconverter.update(collectionToUpdate, currency, function (err, result) {\n    \n  });\n\n  /**\n   * convert convert a specified amount of BTC to a specified currency for one date\n   * @param  {String}   fromCurrency     the currency to find the conversion rate\n   * @param  {String}   toCurrency       the currency to find the conversion rate\n   * @param  {Number}   amountToConvert  the amount of bitcoins to convert to the currency specified\n   * @param  {String}   date             the day to look for in the database, if no data in database request to coinbase API\n   * @param  {Function} callback         return two possible objects, error and result of the operation\n   * @return {undefined}                 not return value\n   */\n  coynoconverter.convert(fromCurrency,  toCurrency, amountToConvert, date, function (err, result) {\n\n  });\n```","maintainers":[{"name":"blooks","email":"blooks@levinkeller.de"}],"time":{"modified":"2022-06-12T15:22:31.174Z","created":"2017-01-06T11:59:35.093Z","0.1.3":"2017-01-06T11:59:35.093Z"},"homepage":"https://github.com/blooks/exchange-rates#readme","keywords":["script"],"repository":{"type":"git","url":"git+https://github.com/blooks/exchange-rates.git"},"author":{"name":"coyno.com"},"bugs":{"url":"https://github.com/blooks/exchange-rates/issues"},"license":"GPL","readmeFilename":"README.md"}