Skip to content

deptno/currency-kr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

currency-kr Build Status

npm ν•œκ΅­ 톡화

Install

npm install currency-kr

API

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

import {λ°±λ§Œμ›} from 'currency-kr';  

console.log(λ§Œμ›(10000, 2)); // "1.00"
console.log(λ§Œμ›(1000000)); // "100"
console.log(λ§Œμ›(10000000)); // "1,000"

License

MIT