{"id":16641975,"url":"https://github.com/artskydj/bmi-calc","last_synced_at":"2025-10-24T08:43:23.633Z","repository":{"id":18665931,"uuid":"21874069","full_name":"ArtskydJ/bmi-calc","owner":"ArtskydJ","description":":shirt:Calculates Body Mass Index","archived":false,"fork":false,"pushed_at":"2015-10-08T13:21:42.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T18:37:22.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtskydJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-15T20:07:44.000Z","updated_at":"2020-03-03T13:21:15.000Z","dependencies_parsed_at":"2022-09-26T21:51:05.954Z","dependency_job_id":null,"html_url":"https://github.com/ArtskydJ/bmi-calc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fbmi-calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fbmi-calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fbmi-calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fbmi-calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtskydJ","download_url":"https://codeload.github.com/ArtskydJ/bmi-calc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165121,"owners_count":20246719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T07:48:27.487Z","updated_at":"2025-10-24T08:43:18.610Z","avatar_url":"https://github.com/ArtskydJ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"bmi-calc\r\n========\r\n\r\n[![Build Status](https://travis-ci.org/ArtskydJ/bmi-calc.svg)](https://travis-ci.org/ArtskydJ/bmi-calc)\r\n\r\nA Body Mass Index calculator.\r\n\r\n# example\r\n\r\n```js\r\nvar calcBmi = require('bmi-calc')\r\n\r\n// 154 lbs, 72 in, imperial\r\nconsole.log( calcBmi(154, 72, true) )\r\n// { value: 20.88, name: 'Normal' }\r\n\r\n// 69 kg, 1.62 m, metric\r\nconsole.log( calcBmi(69, 1.62, false) )\r\n// { value: 26.29, name: 'Overweight' }\r\n\r\n// 59 kg, 2 m, metric\r\nconsole.log( calcBmi(59, 2) )\r\n// { value: 14.75, name: 'Very Severely Underweight' }\r\n```\r\n\r\n# api\r\n\r\n```js\r\nvar calcBmi = require('bmi-calc')\r\n```\r\n\r\n# `var bmi = calcBmi(weight, height, [imperial])`\r\n\r\n- `weight` is a number in pounds or kilograms\r\n- `height` is a number in inches or meters\r\n- `imperial` is an optional boolean that defaults to `false`.\r\n\t- If `true`, `weight` is interpreted as pounds, and `height` as inches.\r\n\t- If `false`, `weight` is interpreted as kilograms, and `height` as meters.\r\n\r\n# `bmi`\r\n\r\n`bmi` is an object with the following properties:\r\n\r\n- `value` is the bmi number, e.g. `21.36`\r\n- `name` is a human-readable string, e.g. `'severely underweight'`\r\n\r\n\r\n# cli\r\n\r\n- Install [node](http://nodejs.org/download).\r\n- Run `npm install -g bmi-calc`\r\n- Run `bmi-calc --pounds 170 --inches 73`. (Except put in your weight and height.)\r\n\r\n```\r\nUsage: bmi-calc OPTIONS\r\n\r\n-f 5, --feet=5         specify height in feet (can be used with -i)\r\n-i 4, --inches=4       specify height in inches (can be used with -f)\r\n-m 2, --meters=2       specify height in meters (can be used with -c)\r\n-c 7, --centimeters=7  specify height in centimeters (can be used with -m)\r\n-l 153, --lbs=153      specify weight in pounds\r\n-p 153, --pounds=153   specify weight in pounds\r\n-k 67, --kilograms=67  specify weight in kilograms\r\n```\r\n\r\n# license\r\n\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fbmi-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartskydj%2Fbmi-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fbmi-calc/lists"}