npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

loan-rates

v1.0.2

Published

대출원금, 대출이율, 대출기간 -> 총이자, 월별이자리스트, 월별원금리스트, 월별상환액리스트

Readme

Description

const 함수명_상환방식 = (
  대출원금: number, // 만원
  대출이율: number, // %
  대출기간: number // 개월
) => ({
  총이자,
  월별이자리스트,
  월별원금리스트,
  월별상환액리스트,
})

사용법

import {만기일시, 원금균등, 원리금균등} from 'loan-rates'

만기일시(10000, 3.59, 12)
// {
//   '총_대출이자': 3590004,
//   '월별이자_리스트': [
//     299167, 299167,
//     299167, 299167,
//     299167, 299167,
//     299167, 299167,
//     299167, 299167,
//     299167, 299167
//   ],
//   '월별원금_리스트': [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100000000 ],
//   '월별상환액_리스트': [
//     299167,    299167,
//     299167,    299167,
//     299167,    299167,
//     299167,    299167,
//     299167,    299167,
//     299167, 100299167
//   ]
// }

원금균등(10000, 3.59, 12)
// {
//   '총_대출이자': 1944590,
//   '월별이자_리스트': [
//     299167, 274237, 249306,
//     224376, 199445, 174514,
//     149584, 124653,  99723,
//      74792,  49862,  24931
//   ],
//   '월별원금_리스트': [
//     8333333, 8333333,
//     8333333, 8333333,
//     8333333, 8333333,
//     8333333, 8333333,
//     8333333, 8333333,
//     8333333, 8333333
//   ],
//   '월별상환액_리스트': [
//     8632500, 8607570,
//     8582639, 8557709,
//     8532778, 8507847,
//     8482917, 8457986,
//     8433056, 8408125,
//     8383195, 8358264
//   ]
// }

원리금균등(10000, 3.59, 12)
// {
//   '총_대출이자': 1955227,
//   '월별이자_리스트': [
//     299166, 274643, 250047,
//     225377, 200633, 175815,
//     150923, 125957, 100916,
//      75800,  50608,  25342
//   ],
//   '월별원금_리스트': [
//     8197103, 8221626,
//     8246222, 8270892,
//     8295636, 8320454,
//     8345346, 8370312,
//     8395353, 8420469,
//     8445661, 8470927
//   ],
//   '월별상환액_리스트': [
//     8496269, 8496269,
//     8496269, 8496269,
//     8496269, 8496269,
//     8496269, 8496269,
//     8496269, 8496269,
//     8496269, 8496269
//   ]
// }