
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
body-mass-index
Advanced tools
Calculate the body mass index (BMI) with the freedom of multiple units
Calculate the body mass index (BMI) with the freedom of multiple units
bodyMassIndex('200 lb', '6ft 9in') => 21.4
$ npm install --save body-mass-index
const bodyMassIndex = require('body-mass-index');
bodyMassIndex('200 lb', '6ft 9in');
// => 21.4
Interchangeable Imperial and Metric Units
const bodyMassIndex = require('body-mass-index');
bodyMassIndex('90.17kg 1lb 100g', '145.27cm 1ft 0.30m');
// => 21.4
Type: string
|| number
A combination of multiple masses (n units(mc|mg|g|kg|oz|lb)). A sole number input shall cause the function to default to kg
.
Type: string
|| number
A combination of multiple lengths (n units(mm|cm|m|km|in|yd|ft|mi)). A sole number input shall cause the function to default to m
.
Type: number
Default: 1
The decimal place for the returned BMI to be rounded to.
MIT © Brandon Him
FAQs
Calculate the body mass index (BMI) with the freedom of multiple units
We found that body-mass-index 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.