-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,55 @@ | ||
# currency-won | ||
[![Build Status](https://travis-ci.org/deptno/currency-kr.svg?branch=master)](https://travis-ci.org/deptno/currency-kr) | ||
|
||
νκ΅ ν΅ν | ||
|
||
## Install | ||
|
||
```bash | ||
npm install currency-kr | ||
``` | ||
|
||
## API | ||
|
||
```typescript | ||
function μ(amount: number): string; | ||
function μμ(amount: number): string; | ||
function λ°±μ(amount: number): string; | ||
function μ²μ(amount: number): string; | ||
function λ§μ(amount: number): string; | ||
function μλ§μ(amount: number): string; | ||
function λ°±λ§μ(amount: number): string; | ||
function μ²λ§μ(amount: number): string; | ||
function μ΅μ(amount: number): string; | ||
function μμ΅μ(amount: number): string; | ||
function λ°±μ΅μ(amount: number): string; | ||
function μ²μ΅μ(amount: number): string; | ||
function μ‘°μ(amount: number): string; | ||
function μμ‘°(amount: number): string; | ||
function λ°±μ‘°μ(amount: number): string; | ||
function μ²μ‘°μ(amount: number): string; | ||
function w(amount: number): string; | ||
function w10(amount: number): string; | ||
function w100(amount: number): string; | ||
function w1000(amount: number): string; | ||
function m(amount: number): string; | ||
function m10(amount: number): string; | ||
function m100(anumber): string; | ||
function m1000(amount: number): string; | ||
function b(amount: number): string; | ||
function b10(amount: number): string; | ||
``` | ||
|
||
## Usage | ||
|
||
```typescript | ||
import {λ°±λ§μ} from 'currency-kr'; | ||
|
||
console.log(λ§μ(10000, 2)); // "1.00" | ||
console.log(λ§μ(1000000)); // "100" | ||
console.log(λ§μ(10000000)); // "1,000" | ||
``` | ||
|
||
## License | ||
|
||
MIT |