
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@marcusthelin/pmt
Advanced tools
Simple PMT function. Credit to Tobias Lanz @StackOverflow
/**
* @param {number} rate - Monthly interest rate
* @param {number} nperiod - Number of periods (months)
* @param {number} pv - Present value
* @param {number} fv - Future value
* @param {number} type - 0 = end of period, 1 = beginning of period
* @param {object} options - Options. See defaultOptions for available options
*/
const defaultOptions = {
round: false, // If the result should be rounded
positive: false // If the result should be a positive number
}
const pmt = require('@marcusthelin/pmt')
const interestRate = 0.475 / 12
const periods = 36
const presentValue = 99330
const futureValue = 56760
const type = 1
const pmtVal = pmt(interestRate, months, presentVal, futureVal, type, {
round: true,
positive: true
}) // 1490
FAQs
Simple PMT function with options
We found that @marcusthelin/pmt 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.