Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.49 KB

README.md

File metadata and controls

65 lines (41 loc) · 1.49 KB

Currency Converter

supported node versions license: MIT

A minimal currency converter library with a functional UI.

N:B : This package utilizes TailwindCSS for styling, please ensure tailwind is already installed in your project before installing this package.

Getting started

Installation

This package can be installed using npm

npm install @clefayomide/ui-currency-converter

or, yarn

yarn add @clefayomide/ui-currency-converter

Usage

Edit content array in tailwind.config.js to target path

content: [
    './node_modules/@clefayomide/ui-currency-converter/**/*.{js,jsx,ts,tsx}'
    // ...other paths according to tailwind configuration 
  ]

Import Converter and AppState.

import { Converter, AppState } from "@clefayomide/ui-currency-converter";

Wrapping things up

<AppState>
  <Converter />
</AppState>

Disclaimer

This package utilized Fawaz Ahmed currency converter API and Rest Countries API, respectively.

Issues

If any issues are found, they can be reported here.

License

This project is licensed under the MIT license.