huskyhoochu / num-to-korean Goto Github PK
View Code? Open in Web Editor NEW:kr: 숫자를 한글 표기로 변환해주는 함수
Home Page: https://www.npmjs.com/package/num-to-korean
License: MIT License
:kr: 숫자를 한글 표기로 변환해주는 함수
Home Page: https://www.npmjs.com/package/num-to-korean
License: MIT License
IE 지원을 위해서는 IE에서 지원되지 않는 메서드 (Number.IsNumber, Array.prototype.includes) 를 다른 방식으로 변경해야 함
1,001,000 = '백만 천' 등 '일'의 표현을 생략하는 구어체적 표현
.d.ts
파일이 없는 것으로 보이는데 추가된다면 타입스크립트에서도 사용이 가능할 것으로 보입니다 🎉
안녕하세요? lib 잘쓰고있습니다
아래와 같은 foramt 옵션 건의드려봅니다.
감사합니다!
안녕하세요. 개발해주신 라이브러리를 아주 잘 사용하고 있는 개발자입니다. 노고에 깊은 감사드립니다.
다름이 아니라 라이브러리를 사용하던 도중에 문득 궁금해져서 한글 맞춤법 규정을 검색해본 결과, 한글 맞춤법 제5장 제2절 제44항에 명시되어있는 규정이 있어 띄어쓰기 여부를 제안드립니다.
규정 내용을 보면 금액을 적을 경우에는 띄어쓰지 않아도 괜찮다는 말이 있으나, 라이브러리의 용도가 범용인지, 은행용인지 애매한 것 같아서 일단 제안 요청만 드리고자 합니다.
+ 임의로 index.ts
에 코딩도 진행해보았습니다.
// 불필요하게 첨가된 단위 제거
const removeUnusedDot = splitEvery(4, koreanArr).filter(
(slicedByDot: string[]) => !dotSymbol.includes(slicedByDot.join(''))
);
return flatten(removeUnusedDot)
+ .reverse()
+ .map(
+ (letter: string, index: number, array: Array<string>) =>
+ letter && array.length - 1 > index && dotSymbol.includes(letter.slice(letter.length - 1))
+ ? letter + ' '
+ : letter
+ )
+ .join('');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.