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

Comparing version 1.1.0 to 1.1.1

7

package.json
{
"name": "nutrition",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple nutrition facts wrapper",
"main": "index.js",
"main": "dist/index.js",
"scripts": {

@@ -44,4 +44,3 @@ "build": "npm run clean && npm run build-lib",

"mocha": "^2.4.5"
},
"dependencies": {}
}
}
[![Build Status](https://travis-ci.org/redblues/node-nutrition.svg?branch=master)](https://travis-ci.org/redblues/node-nutrition)
# Nutrition

@@ -13,9 +15,13 @@

```js
// import a single function
import { f } from 'nutrition';
// import for ES6
import * as nutrition from 'nutrition'
// or everything at once
import * as nutrition from 'nutrition';
const value = nutrition.bmi(75, 1.75)
const value = nutrition.BMI(75, 1.75);
// OR import for ES5
var nutrition = require('nutrition')
var value = nutrition.bmi(75, 1.75)
```

@@ -25,3 +31,3 @@

#### `BMI(weight, height, eng)`
#### `bmi(weight, height, eng)`

@@ -38,4 +44,2 @@ If eng (for English BMI style) is true then:

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

@@ -42,0 +46,0 @@

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