Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
asset-depreciation-calculator
Advanced tools
Calculate the asset depreciation
$ npm install asset-depreciation-calculator
const calculateDepreciation = require("asset-depreciation-calculator");
calculateDepreciation({
purchaseAmount: 2000000,
purchaseDate: new Date("2016-01-01"),
totalDepreciationYears: 5,
})
// => [{
// year: 2016,
// depreciationMonths: 12,
// depreciationAmount: 400000,
// percentage: 0.2,
// startAmount: 2000000,
// endAmount: 1600000,
// }, {
// year: 2017,
// depreciationMonths: 12,
// depreciationAmount: 400000,
// percentage: 0.2,
// startAmount: 1600000,
// endAmount: 1200000,
// }, {
// year: 2018,
// depreciationMonths: 12,
// depreciationAmount: 400000,
// percentage: 0.2,
// startAmount: 1200000,
// endAmount: 800000,
// }, {
// year: 2019,
// depreciationMonths: 12,
// depreciationAmount: 400000,
// percentage: 0.2,
// startAmount: 800000,
// endAmount: 400000,
// }, {
// year: 2020,
// depreciationMonths: 12,
// depreciationAmount: 400000,
// percentage: 0.2,
// startAmount: 400000,
// endAmount: 0,
// }]
The purchase amount in cents.
Type: number
.
Type: Date
Type: number
FAQs
Asset Depreciation Calculator
The npm package asset-depreciation-calculator receives a total of 188 weekly downloads. As such, asset-depreciation-calculator popularity was classified as not popular.
We found that asset-depreciation-calculator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.