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 🙏

© 2024 – Pkg Stats / Ryan Hefner

housingloan-calc

v1.1.2

Published

housing loan calc for Chinese

Downloads

10

Readme

English | 简体中文

housingloan-calc 房贷计算器

npm GitHub license

计算的数学公式

等额本息计算方式

等额本息:每月按相等的金额偿还贷款本息,其中本金逐月递增,利息逐月递减,月还款额不变。 等额本息计算方式

等额本金计算方式

等额本金:每月按相等的金额偿还贷款本金,其中本金保持相同,利息逐月递减,月还款额越来越少。 等额本金计算方式

如何使用

Browser:

<script src='path/to/housingloan-calc.js'></script>

Node.js:

$ npm install housingloan-calc
const housingloanCalc = require('housingloan-calc');

ES6 module:

import housingloanCalc from 'housingloan-calc';
const [loan, year, rate] = [100, 25, 4.9];

// 等额本息
const Result = housingloanCalc.fixCalc(loan, year, rate);

// 等额本金
const Result = housingloanCalc.capitalCalc(loan, year, rate);

const {
    type, // 类型
    loan, // 总贷款额
    total, // 总还款额
    interest, // 总利息
    months, // 贷款总月份数
    repaymentMonthly, // 每月月供额(等额本息) 或者 首月还款额(等额本金)
    incomeMonthly // 建议您的月收入流水必须需要大于数:流水要求:收入月流水 > 每月还款(月供) x 2
    monthlyData // 每月还款数额,仅等额本金方式时候有效
    } = Result;

monthlyData  = [
    {
    monthlyRepay: Number // 月供本金
    monthlyInterest:  Number // 月供利息
    monthlyAll: Number // 月供 = 月供本金 + 月供利息
    },
    {},
    {},
    {}
    ...
    ]

作品体验

  • 微信小程序,用微信扫描下面二维码即可体验

xcx

如何贡献

欢迎每个人为这个项目做出贡献。可以从查看我们未解决的问题提交新问题提出新功能入手,参与讨论投票您喜欢或不喜欢的问题。

开源证书

The MIT License.