Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Is a JavaScript library for financial calculations designed to be used with functional programing paradigm.
It uses Ramda.
Build your custom calculator for taxes, compose it easily to using ramda.
finlambda allows write your business rules easy to understand.
npm install finlambda ramda@0.26.0
Node
Import all functions
const FinLambda = require('finlambda')
or individually
const { rateAt } = require('finlambda')
ES2015 or typescript
import { rateAt } from 'finlambda'
Browser
<script src="path/to/yourCopyOf/ramda.js></script>
<script src="path/to/yourCopyOf/finlambda.js></script>
create a complex tax
const bracket15 = taxBracket(rateAt(0.15), forInterval(0, 38120))
const bracket28 = taxBracket(rateAt(0.28), forInterval(38121))
const brackets = [bracket15, bracket28]
const corpTax = tax(brackets);
const afterCorpTax = netAfter(corpTax)
// calculate your tax
corpTax(100000) //=> 23045
// calculate net amount after tax
afterCorpTax(100000) //=> 76955
chain taxes
const flatTax = rateAt(0.30)
const afterFlatTax = netAfter(flatTax)
const withFlatTax = R.pipe(afterCorpTax, afterFlatTax)
withFlatTax(100000) //=> 53868.5
tax value in each bracket
const coprTaxDetailed = taxDetail(brackets)
corpTaxDetailed(100000) //=> [ 5718, 11726.12 ]
Read all documentation here
FAQs
Functional programing library for financial calculations
The npm package finlambda receives a total of 4 weekly downloads. As such, finlambda popularity was classified as not popular.
We found that finlambda 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.