Socket
Socket
Sign inDemoInstall

nutrition

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nutrition

Simple nutrition facts wrapper


Version published
Maintainers
1
Created

Readme

Source

Nutrition

Simple nutrition facts wrapper as an NPM module.

Installation

npm install nutrition --save

Usage

// import a single function
import { f } from 'nutrition';

// or everything at once
import * as nutrition from 'nutrition';

const value  = nutrition.BMI(75, 1.75);

Methods

BMI(weight, height, eng)

If eng (for English BMI style) is true then:

  • weight is used in pounds, otherwise in kilograms.
  • height is used in inches, otherwise in meters.

Next steps

  • Set of healthy methods
  • Unit tests
  • CI tool
  • Coverage

LICENSE

MIT, see LICENSE.

Keywords

FAQs

Last updated on 24 May 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc