Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A Zero-Dependency TypeScript / JavaScript financial utility library inspired by numpy-financial
It does support the same functionality offered by numpy-financial
but it only support scalar values (no numpy-like array values) and it does not support decimal values.
With npm
:
npm install --save-dev financial
Or, with yarn
:
yarn add financial
import { fv } from 'financial'
fv(0.05 / 12, 10 * 12, -100, -100) // 15692.928894335748
fv
pmt
nper
ipmt
ppmt
pv
rate
irr
npv
mirr
Below is a list of commands you will probably find useful.
npm start
or yarn start
: Runs the project in development/watch mode. Your project will be rebuilt upon changes.npm run build
or yarn build
: Bundles the package to the dist
folder. The package is optimized and bundled with Rollup into multiple format (CommonJS, UMD, and ES Module).npm run build:docs
or yarn build:docs
: Builds the API documentation in the docs
folder using typedoc
.npm test
or yarn test
: Runs the test watcher (Jest) in an interactive mode. it runs tests related to files changed since the last commit.npm run test:watch
or yarn test:watch
: runs the tests in watch modeEveryone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.
You can also submit PRs as long as you adhere with the code standards and write tests for the proposed changes.
Licensed under MIT License. © Luciano Mammino.
FAQs
A Zero-dependency TypeScript/JavaScript port of numpy-financial
The npm package financial receives a total of 6,057 weekly downloads. As such, financial popularity was classified as popular.
We found that financial demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.