Skip to content

venancioavila/realvalor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realvalor

Realvalor is a library to obtain the quotation of some currencies.

Installation

Use the package manager npm to install foobar.

npm install realvalor

or

yarn add realvalor

Usage

const realvalor = require("realvalor");

const dolar = async () => {
  const value = await realvalor("dolar");
  console.log(value);
};

const bitcoin = async () => {
  const value = await realvalor("bitcoin");
  console.log(value);
};

const euro = async () => {
  const value = await realvalor("euro");
  console.log(value);
};

const ouro = async () => {
  const value = await realvalor("ouro");
  console.log(value);
};

const iene = async () => {
  const value = await realvalor("iene");
  console.log(value);
};

const dolarCanadense = async () => {
  const value = await realvalor("dolar-canadense");
  console.log(value);
};

const dolarAustraliano = async () => {
  const value = await realvalor("dolar-australiano");
  console.log(value);
};

const francoSuico = async () => {
  const value = await realvalor("franco-suico");
  console.log(value);
};

const libra = async () => {
  const value = await realvalor("libra");
  console.log(value);
};

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published