Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvfsillva committed Feb 22, 2020
1 parent 36f7b53 commit 4677dfd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
Binary file added .github/ca-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/usa-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 19 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,26 @@ $ npm install international-fees

## Usage

```javascript
import { fees } from 'international-fees'

```js
import fees from 'international-fees'

// List all provinces
console.log(fees.ca)
```
<p align="center">
<img width="400" height="auto" src=".github/ca-list.png"/>
</p>

```js
// List all states
console.log(fees.usa)
```
<p align="center">
<img width="400" height="auto" src=".github/usa-list.png"/>
</p>

```js
fees.ca['Ontario'].provinceRate // 8
fees.ca['Ontario'].countryRate // 5
fees.ca['Ontario'].tax // 13
Expand Down

0 comments on commit 4677dfd

Please # to comment.