
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
solid-credit
Advanced tools
Solid Credit is an advanced tool designed for the precise generation of loan amortization tables. This library encompasses a variety of loan structures, including the French, German, and American systems, in addition to offering options for grace periods.
Solid Credit is an advanced tool designed for the precise generation of loan amortization tables. This library encompasses a variety of loan structures, including the French, German, and American systems, in addition to offering options for grace periods.
To install the library, run the following command:
npm i solid-credit
To use the library, you must import the Solid class and create an instance of it, which takes as parameters the loan amount, the interest rate, the loan term, and the installment type.
import { Solid } from 'solid-credit'
// structure : (plazo, InteresAnual, Preteamo)
const data2 = Solid.fixedPayment(12, 40, 1000);// return array
import { Solid } from 'solid-credit'
// structure : (plazo, InteresAnual, Preteamo)
// whith basepoint or warrning pais
const data = Solid.variablePayment( 12, 15, 1000, let basepoint = 300)// return array
// Normal
// structure : (plazo, InteresAnual, Preteamo)
const data = Solid.variablePayment(12, 15, 1000)// return array
// Grace period
import { Solid } from 'solid-credit'
// structure : (plazo, InteresAnual, Preteamo)
const data = Solid.gracePeriod(12, 15, 1000, 3);// return array
// Grace period with fixed payment
import { Solid } from 'solid-credit'
// structure : (plazo, InteresAnual, Preteamo)
const data = Solid.graceFixedPayment( 12, 15, 1000, 3) // return Promise<array>
import { Solid } from 'solid-credit'
// structure : (plazo, InteresAnual, Preteamo)
const data = Solid.americanMethod(12, 15, 1000)// return array
// Structure of array
[
{
month: 1,
payment: 0,
interest: 0,
Principal: 0,
balance: 0
}
]
from {solid_crt} import SolidCrt
const data = SolidCrt.fixedPayment(plazo = 12, 15, 1000);
const tbody = document.querySelector('#paymentsTable tbody');
const rows = data.map(item => {
return `<tr>
<td>${item.month}</td>
<td>${item.payment.toFixed(2)}</td>
<td>${item.interest.toFixed(2)}</td>
<td>${item.principal.toFixed(2)}</td>
<td>${item.balance.toFixed(2)}</td>
</tr>´
}).join('');
tbody.innerHTML = rows;
Contributions are welcome; to do so, you must create a pull request with the new feature or bug fix
Licence MIT
FAQs
Solid Credit is an advanced tool designed for the precise generation of loan amortization tables. This library encompasses a variety of loan structures, including the French, German, and American systems, in addition to offering options for grace periods.
We found that solid-credit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.