{"_id":"loan-calc","_rev":"34-cad207e92175aab57eb901bcbaf26aab","name":"loan-calc","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"loan-calc","version":"0.2.0","keywords":["money","mortgage","loan","calculator"],"author":{"name":"Adam Scott"},"license":"Public Domain","_id":"loan-calc@0.2.0","maintainers":[{"name":"adamdscott","email":"hello@adamdscott.com"}],"homepage":"https://github.com/cfpb/loan-calc","bugs":{"url":"https://github.com/cfpb/loan-calc/issues"},"dist":{"shasum":"9479d25cb673f2454a75563de9537ed7c78dcaf6","tarball":"https://registry.npmjs.org/loan-calc/-/loan-calc-0.2.0.tgz","integrity":"sha512-XuEHoFtG9KzDeIgVnqK4EFf8OsuCobvrMLqvmPhnQ74nycCXXNe5WgpqnRdqAb0Ds05Tj2tFaKDsPn36jSIJlg==","signatures":[{"sig":"MEYCIQDWLDd2X2iUTOo8hYLh/E8I473QXz9bcox8vPd2Jf5GLwIhANFU/P2cF/2jNzYz7Jyzlo9Q0wzcI2GQ4ixCIHyzuyfR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"nodeunit test/test.js"},"_npmUser":{"name":"adamdscott","email":"hello@adamdscott.com"},"repository":{"url":"git://github.com/cfpb/loan-calc.git","type":"git"},"_npmVersion":"1.4.6","description":"Calculate monthly loan payments","directories":{},"devDependencies":{"nodeunit":"~0.8.6"}},"0.2.1":{"name":"loan-calc","version":"0.2.1","keywords":["money","mortgage","loan","calculator"],"author":{"name":"CFPB"},"license":"Public Domain","_id":"loan-calc@0.2.1","maintainers":[{"name":"adamdscott","email":"hello@adamdscott.com"}],"homepage":"https://github.com/cfpb/loan-calc","bugs":{"url":"https://github.com/cfpb/loan-calc/issues"},"dist":{"shasum":"da13606bdbffb3d6844e2c9f05dc36aa961bd4ba","tarball":"https://registry.npmjs.org/loan-calc/-/loan-calc-0.2.1.tgz","integrity":"sha512-7apnZh+yCXJ4tvV9woIbKNImbIFWDZpfABbw1Pbb/Jgz5BF2R0XWreQLTzjJpAuwONa8Sw7DYuzpl35M4gmoKg==","signatures":[{"sig":"MEUCIBqCf7shb574Z0s6b+mwSzRlC4Y2c6zcWp2yMgOW59D2AiEAjHEYSuY6qGODepLMYIl3AUoaQ7ZBWbts1Lo1GHIaj4I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"nodeunit test/test.js"},"_npmUser":{"name":"adamdscott","email":"hello@adamdscott.com"},"repository":{"url":"git://github.com/cfpb/loan-calc.git","type":"git"},"_npmVersion":"1.4.6","description":"Calculate monthly loan payments","directories":{},"devDependencies":{"nodeunit":"~0.8.6"}}},"time":{"created":"2014-04-16T19:23:20.818Z","modified":"2026-08-25T20:17:39.527Z","0.2.0":"2014-04-16T19:23:20.818Z","0.2.1":"2014-04-16T19:24:53.938Z"},"bugs":{"url":"https://github.com/cfpb/loan-calc/issues"},"author":{"name":"CFPB"},"license":"Public Domain","homepage":"https://github.com/cfpb/loan-calc","keywords":["money","mortgage","loan","calculator"],"repository":{"url":"git://github.com/cfpb/loan-calc.git","type":"git"},"description":"Calculate monthly loan payments","maintainers":[{"email":"higs4281@gmail.com","name":"wmhiggins"},{"email":"devops@cfpb.gov","name":"cfpbadmin"},{"email":"chris@contolini.com","name":"contolini"},{"email":"mistergone@gmail.com","name":"mistergone"},{"email":"wyatt.pearsall@cfpb.gov","name":"wpears"},{"email":"github@anselmbradford.com","name":"anselmbradford"},{"email":"dick.dinh@gmail.com","name":"flacoman91"},{"email":"Joshua.Allen@cfpb.gov","name":"allenjo"},{"email":"whimmels@gmail.com","name":"billhimmelsbach"},{"email":"david.palmer@cfpb.gov","name":"dave_palmer"},{"email":"hello@adamdscott.com","name":"adamdscott"},{"email":"himedlooff@gmail.com","name":"himedlooff"},{"email":"scott@scottcranfill.com","name":"scotchester"}],"readme":"[![Build Status](https://travis-ci.org/cfpb/loan-calc.svg?branch=master)](https://travis-ci.org/cfpb/loan-calc)\n\nQuickly calculate monthly payments and the total amount of interest paid for a fixed rate loan.\n\n## Installation\n\nFirst install [node.js](http://nodejs.org/). Then:\n\n```sh\nnpm install loan-calc --save\n```\n\n## Usage\n\nRequire the module and pass the amount of the loan, annual rate, and length of loan in months.\n\n```javascript\nvar LoanCalc = require('loan-calc');\n\nLoanCalc.paymentCalc({\n    amount: 200000,\n    rate: 5,\n    termMonths: 180\n});\n// returns 1581.59\n\nLoanCalc.totalInterest({\n    amount: 200000,\n    rate: 5,\n    termMonths: 360\n});\n// returns 186511.57\n```\n\nYou can also pass the loan amount as a US currency formatted string:\n\n```javascript\nLoanCalc.paymentCalc({\n    amount: '$200,000',\n    rate: 5,\n    termMonths: 180\n});\n// returns 1581.59\n```\n","readmeFilename":"README.md","users":{}}