dolartoday
v1.0.2
Published
Libreria para Consultar Tasa DolarToday desde alguna API ExpressJS o Aplicacion ExpressJS
Downloads
13
Maintainers
Readme
POWERED BY
AND
DolarToday is a library for NODE.JS of use for applications in Venezuela..
- Calculate The Dollar Rate
- Calculate The Euro Rate
- More
Installation
DolarToday requires Node.js v5+ to run.
Install the dependencies and devDependencies and start the server.
$ cd dolartoday
$ npm install dolartoday
USE
Calling the Library
const Today = require('dolartoday');
Calling the Methods
All Rates (EXAMPLE)
(async () => { res.send(await Today.dolarToday()) })()
Dolar Rate (EXAMPLE)
` app.get('route', (req, res) => {
if(req.params.cant){
Today.calcularDolar(req.params.cant).then(resultado => res.json(resultado));
}else{
res.sendStatus(400);
}
}) ` Euro Rate (EXAMPLE)
` app.get('route', (req, res) => {
if(req.params.cant){
Today.calcularEuro(req.params.cant).then(resultado => res.json(resultado));
}else{
res.sendStatus(400);
}
}) `
License
MIT
Free Software, Hell Yeah!