From 086642a2b41abb8cefafe77d89f6656ce5bb44dd Mon Sep 17 00:00:00 2001 From: Bonggyun Lee Date: Mon, 20 Mar 2017 03:25:13 +0900 Subject: [PATCH] readme --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/README.md b/README.md index a04ac61..7da2223 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file