open-index/open-npm huggingface dataset:
npm package: @ifanrx/prettier-config-standard
Description: An Prettier shared standard configuration.
Author: ifanrX Team
Latest version: 1.2.0

# 注意事项

`.prettierrc.js` 配置文件中没有 `extends` 项，`@ifanrx/prettier-config-standard` 总是放在最后一个引入。

# 使用方法

## 单独使用

```
pnpm install @ifanrx/prettier-config-standard -D
```

```js
// .prettierrc.js
module.exports = require('@ifanrx/prettier-config-standard')
```

## 小程序项目中使用

```
pnpm install @ifanrx/prettier-config-standard-wxml @ifanrx/prettier-config-standard -D
```

```js
// .prettierrc.js
module.exports = {
  ...require('@ifanrx/prettier-config-standard-wxml'),
  ...require('@ifanrx/prettier-config-standard'),
}
```
npm package: @ifanrx/prettier-config-standard-wxml
Description: An Prettier shared standard configuration for WXML.
Author: ifanrX Team
Latest version: 1.2.0

# 注意事项

`@ifanrx/prettier-config-standard-wxml` 总是与 `@ifanrx/prettier-config-standard` 搭配使用。

`.prettierrc.js` 配置文件中没有 `extends` 项，`@ifanrx/prettier-config-standard` 总是放在最后一个引入。

# 使用方法

```
pnpm install @ifanrx/prettier-config-standard-wxml @ifanrx/prettier-config-standard -D
```

```js
// .prettierrc.js
module.exports = {
  ...require('@ifanrx/prettier-config-standard-wxml'),
  ...require('@ifanrx/prettier-config-standard'),
}
```
npm package: @ifanrx/stylelint-config-standard
Description: An Stylelint shared standard configuration.
Author: ifanrX Team
Latest version: 2.1.0

# 说明

`@ifanrx/stylelint-config-standard` 仅针对 CSS 项目。

如果是 SASS 项目，请使用 `@ifanrx/stylelint-config-standard-scss`。

`@ifanrx/stylelint-config-standard` 已默认引入 `@ifanrx/stylelint-config-standard-bem`。

同时支持两种 BEM 格式：

- 一般情况下，必须优先使用常规 BEM 格式：`.block-foo__element-bar--modifier-baz`。
- 如果使用 css module 或一些 css-in-js 的项目，通常使用驼峰式 BEM 格式：`.blockFoo__elementBar_modifierBaz`。

# 注意事项

`.stylelintrc.js` 配置文件的 `extends` 中，`@ifanrx/stylelint-config-standard` 总是放在第一个。

# 使用方法

## 单独使用

```
pnpm install @ifanrx/stylelint-config-standard -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['@ifanrx/stylelint-config-standard'],
}
```

## 小程序项目中使用

```
pnpm install @ifanrx/stylelint-config-standard @ifanrx/stylelint-config-standard-wxss -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['@ifanrx/stylelint-config-standard', '@ifanrx/stylelint-config-standard-wxss'],
}
```
npm package: @ifanrx/stylelint-config-standard-bem
Description: An Stylelint shared standard configuration for BEM.
Author: ifanrX Team
Latest version: 2.1.0

# 说明

`@ifanrx/stylelint-config-standard-bem` 已默认在 `@ifanrx/stylelint-config-standard` 和 `@ifanrx/stylelint-config-standard-scss` 中引入。

同时支持两种 BEM 格式：

- 一般情况下，必须优先使用常规 BEM 格式：`.block-foo__element-bar--modifier-baz`。
- 如果使用 css module 或一些 css-in-js 的项目，通常使用驼峰式 BEM 格式：`.blockFoo__elementBar_modifierBaz`。

# 注意事项

`.stylelintrc.js` 配置文件的 `extends` 中，`@ifanrx/stylelint-config-standard-bem` 总是放在最后一个。

# 使用方法

```
pnpm install @ifanrx/stylelint-config-standard-bem -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: [
    ...,
    '@ifanrx/stylelint-config-standard-bem'
  ],
}
```
npm package: @ifanrx/stylelint-config-standard-react
Description: An Stylelint shared standard configuration for React.
Author: ifanrX Team
Latest version: 2.1.0

# 说明

`@ifanrx/stylelint-config-standard-react` 总是与 `@ifanrx/stylelint-config-standard` 或 `@ifanrx/stylelint-config-standard-scss` 搭配使用。

`.stylelintrc.js` 配置文件的 `extends` 中，`@ifanrx/stylelint-config-standard` 或 `@ifanrx/stylelint-config-standard-scss` 总是放在第一个。

# 使用方法

## React + CSS 项目中使用

```
pnpm install @ifanrx/stylelint-config-standard-react @ifanrx/stylelint-config-standard -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-react', 'stylelint-config-standard'],
}
```

## React + SASS 项目中使用

```
pnpm install @ifanrx/stylelint-config-standard-react @ifanrx/stylelint-config-standard-scss -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-react', 'stylelint-config-standard-scss'],
}
```
npm package: @ifanrx/stylelint-config-standard-scss
Description: An Stylelint shared standard configuration for SCSS.
Author: ifanrX Team
Latest version: 2.1.0

# 说明

`@ifanrx/stylelint-config-standard-scss` 仅针对 SASS 项目。

如果是 CSS 项目，请使用 `@ifanrx/stylelint-config-standard`。

`@ifanrx/stylelint-config-standard-scss` 已默认引入 `@ifanrx/stylelint-config-standard-bem`。

同时支持两种 BEM 格式：

- 一般情况下，必须优先使用常规 BEM 格式：`.block-foo__element-bar--modifier-baz`。
- 如果使用 css module 或一些 css-in-js 的项目，通常使用驼峰式 BEM 格式：`.blockFoo__elementBar_modifierBaz`。

# 注意事项

`.stylelintrc.js` 配置文件的 `extends` 中，`@ifanrx/stylelint-config-standard-scss` 总是放在第一个。

# 使用方法

## 单独使用

```
pnpm install @ifanrx/stylelint-config-standard-scss -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['@ifanrx/stylelint-config-standard-scss'],
}
```

## Vue 项目中使用

```
pnpm install @ifanrx/stylelint-config-standard-scss @ifanrx/stylelint-config-standard-vue -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-scss', 'stylelint-config-standard-vue'],
}
```
npm package: @ifanrx/stylelint-config-standard-vue
Description: An Stylelint shared standard configuration for Vue.
Author: ifanrX Team
Latest version: 2.1.0

# 说明

`@ifanrx/stylelint-config-standard-vue` 总是与 `@ifanrx/stylelint-config-standard` 或 `@ifanrx/stylelint-config-standard-scss` 搭配使用。

`.stylelintrc.js` 配置文件的 `extends` 中，`@ifanrx/stylelint-config-standard` 或 `@ifanrx/stylelint-config-standard-scss` 总是放在第一个。

# 使用方法

## Vue + CSS 项目中使用

```
pnpm install @ifanrx/stylelint-config-standard-vue @ifanrx/stylelint-config-standard -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-vue', 'stylelint-config-standard'],
}
```

## Vue + SASS 项目中使用

```
pnpm install @ifanrx/stylelint-config-standard-vue @ifanrx/stylelint-config-standard-scss -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard-vue', 'stylelint-config-standard-scss'],
}
```
npm package: @ifanrx/stylelint-config-standard-wxss
Description: An Stylelint shared standard configuration for WXSS.
Author: ifanrX Team
Latest version: 2.1.0

# 说明

`@ifanrx/stylelint-config-standard-wxss` 总是与 `@ifanrx/stylelint-config-standard` 搭配使用。

`.stylelintrc.js` 配置文件的 `extends` 中，`@ifanrx/stylelint-config-standard` 总是放在第一个。

# 使用方法

```
pnpm install @ifanrx/stylelint-config-standard-wxss @ifanrx/stylelint-config-standard -D
```

```js
// .stylelintrc.js
module.exports = {
  extends: ['stylelint-config-standard', 'stylelint-config-standard-wxss'],
}
```
npm package: @ifaxity/hyper
Description: A modern hyperscript inspired library with IE9+ support.
Author: christian@faxity.se
Latest version: 1.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@ifaxity/hyper
==============

A modern hyperscript inspired library with IE9+ support.

Supports JSX and fragments, through this typescript config.

```json
{
  "compilerOptions": {
    "target": "es5",
    "module": "es2015",
    "moduleResolution": "node",
    "lib": ["es5", "es6", "dom"],
    "jsx": "react",
    "jsxFactory": "h",
    "jsxFragmentFactory": "Fragment",
  }
}
```

And then in you code import the required members

```tsx
import { h, Fragment, render } = from '@ifaxity/hyper';

function Button(props) {
  function onClick() {
    console.log('CLICKED');
  }

  return (
    <button onClick={props.onClick || onClick}>{props.children}</button>
  );
}

const app = (
  <>
    <h1>Click the button below</h1>
    <Button onClick={() => alert('CLICKED')}>Click me</Button>
  </>
);

render(app, '#app');
```

Dont want to use JSX? Thats fine.
---------------------------------

Thats fine!
You can use the tag shorthands (only for the most common tags) or the h factory directly.

```ts
import { h, button, render, fragment } = from '@ifaxity/hyper';

function Button(props) {
  function onClick() {
    console.log('CLICKED');
  }

  return button({ onClick: props.onClick || onClick }, props.children);
}

const app = fragment(
  h('h1#header'),
  h(Button, { onClick: () => alert('CLICKED') }, 'Click me')
);

render(app, '#app');
```
npm package: @ifaxity/koa-json
Description: @ifaxity/koa-json ===================
Author: Christian Norrman
Latest version: 1.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@ifaxity/koa-json
===================

## A minimal koa@2 pug/html render engine

Minimal dependencies & code is cut down to not take so much space.
Because node_modules hell is something i want to avoid.
This module was for private purposes but making it public wont do any harm.

Code heavily based on the [koa-views package](https://www.npmjs.com/package/koa-views)

------------------
## Installation:

`npm install @ifaxity/koa-json --save`

or if you use yarn

`yarn add @ifaxity/koa-json`

--------
## Usage

To use the module just require it like this

`const jwt = require('@ifaxity/koa-json');`

And then you need to add it to your koa server like this:

```js
const render = require('@ifaxity/koa-json');

// or whatever folder you use for your views
app.use(render(__dirname + '/views'), {
  ext: 'pug',
  globals: {
    title: 'Default title',
  }
});


// Example route
app.use(async ctx => {
  // Render state object
  ctx.state = {
    title: 'Index page title',
  };

  await ctx.render('index', {
    foo: 'bar',
  });
});

// You can also switch between .pug and .html files like this
// As the option 'ext' only specifies the default extension
app.use(async ctx => {
  await ctx.render('index.html');
});
```
npm package: @ifaxity/mz
Description: @ifaxity/mz ===================
Latest version: 1.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@ifaxity/mz
===================

## A minimal promises version of node modules built in modules

No dependencies in production & code is cut down to not take so much space.
Because node_modules hell is something i want to avoid.
This module was for private purposes but making it public wont do any harm.

Code heavily based on the [mz package](https://www.npmjs.im/mz)

------------------
## Installation:

`npm install @ifaxity/mz --save`

or if you use yarn

`yarn add @ifaxity/mz`

--------
## Usage

To use the module just require it like this:

`const mz = require('@ifaxity/mz');`

And then you can then use the module like this:

```js
const fs = require('@ifaxity/mz').fs;

// ...then use the fs module like normal but with promises.

// You can also just require a certain sub module like this.
const fs = require('@ifaxity/mz/fs');

// ...then use the module like normal but with promises.
```

-----------------
## Functions list

The built in functions and variables not promisified in this package are just proxied over so the synchronous functions and variables works.

However if the built in module doest have a function that is in a later module it wont try to promisify it. So some functions may not exist if you are in node 8 or another earlier version.

The modules & functions that are promised are:

* `child_process`
  * `exec`
  * `execFile`
* `crypto`
  * `generateKeyPair`
  * `pbkdf2`
  * `randomBytes`
  * `randomFill`
  * `scrypt`
* `dns`
  * `lookup`
  * `lookupService`
  * `resolve`
  * `resolve4`
  * `resolve6`
  * `resolveAny`
  * `resolveCname`
  * `resolveMx`
  * `resolveNaptr`
  * `resolveNs`
  * `resolvePtr`
  * `resolveSoa`
  * `resolveSrv`
  * `resolveTxt`
  * `reverse`
* `fs`
  * `access`
  * `appendFile`
  * `chmod`
  * `chown`
  * `close`
  * `copyFile`
  * `fchmod`
  * `fchown`
  * `fdatasync`
  * `fstat`
  * `fsync`
  * `ftruncate`
  * `futimes`
  * `lchmod`
  * `lchown`
  * `link`
  * `lstat`
  * `mkdir`
  * `mkdtemp`
  * `open`
  * `read`
  * `readdir`
  * `readFile`
  * `readlink`
  * `realpath`
  * `rename`
  * `rmdir`
  * `stat`
  * `symlink`
  * `truncate`
  * `unlink`
  * `utimes`
  * `write`
  * `writeFile`
* `readline`
  * `createInterface` - Modified to return a custom Interface class object but only modifies the question method, the other methods are extended.
  * `Interface` - The completer is compatible with both synchronous and promises. But not the normal callback.
    * `question`
* `zlib`
  * `brotliCompress`
  * `brotliDecompress`
  * `deflate`
  * `deflateRaw`
  * `gunzip`
  * `gzip`
  * `inflate`
  * `inflateRaw`
  * `unzip`
npm package: @ifbmp/log
Description: Logger simples para Node.js e AWS Lambda, com identificação do módulo e integração nativa ao CloudWatch.
Author: IFBMP
Latest version: 1.3.0

# @ifbmp/log

Logger simples para Node.js e AWS Lambda, com identificação do módulo e integração nativa ao CloudWatch.

## Instalação

```bash
npm install @ifbmp/log
```

## Uso

```js
import { createLogger } from '@ifbmp/log';

const log = createLogger('lambda.js');
log.info('Lambda iniciado com sucesso');
log.warn('Conexão lenta');
log.error('Erro ao conectar no banco');
```

Os logs coloridos aparecerão no terminal local e no CloudWatch (quando rodar em ambiente AWS Lambda).

## Licença
MIT
npm package: @ifc-lite/codegen
Description: TypeScript code generator from IFC EXPRESS schemas
Latest version: 1.15.2

# @ifc-lite/codegen

TypeScript code generator from IFC EXPRESS schemas.

## Overview

This package parses official IFC EXPRESS schema files (.exp) from buildingSMART and generates:
- TypeScript entity interfaces with full inheritance
- Schema registry with type metadata
- Attribute definitions and type information
- Enum definitions

## Why?

Instead of manually implementing 1000+ IFC entity types, we generate them automatically from the official schemas. This gives us:
- ✅ 100% schema coverage
- ✅ Automatic updates when schemas change
- ✅ Type-safe TypeScript
- ✅ Consistent with IFC standard

## Usage

### Generate code from schema

```bash
npm run generate:ifc4      # Generate from IFC4 schema
npm run generate:ifc4x3    # Generate from IFC4X3 schema
```

### Programmatic usage

```typescript
import { parseExpressSchema, generateTypeScript } from '@ifc-lite/codegen';

const schema = parseExpressSchema('./schemas/IFC4.exp');
const code = generateTypeScript(schema);
```

## Architecture

```
IFC4.exp (EXPRESS schema)
    ↓
ExpressParser
    ↓
Schema AST (entities, types, enums)
    ↓
TypeScriptGenerator
    ↓
Generated files:
  - entities.ts (interfaces)
  - schema-registry.ts (metadata)
  - types.ts (enums, selects)
```

## EXPRESS Schema Format

EXPRESS is a data modeling language defined in ISO 10303-11. Example:

```express
ENTITY IfcWall
  SUBTYPE OF (IfcBuildingElement);
  PredefinedType : OPTIONAL IfcWallTypeEnum;
END_ENTITY;
```

## Generated Output

```typescript
export interface IfcWall extends IfcBuildingElement {
  PredefinedType?: IfcWallTypeEnum;
}

export const SCHEMA_REGISTRY = {
  IfcWall: {
    parent: 'IfcBuildingElement',
    attributes: [
      { name: 'PredefinedType', type: 'IfcWallTypeEnum', optional: true }
    ]
  }
};
```

## Testing

The generator includes comprehensive tests:
- EXPRESS parser tests (tokenization, entity parsing, type parsing)
- TypeScript generator tests (interface generation, inheritance)
- Integration tests (generate from real schemas, validate output)

```bash
npm test
```

## Integration with Parser

This package is **standalone** and does not depend on `@ifc-lite/parser`. Once the generated code is validated, it can be integrated into the parser package.

## License

MIT
npm package: @ifcanduela/vue-svg-loader
Description: Simple SVG-as-component loader for Vue 3
Author: IF Canduela
Latest version: 0.0.3

# Vue Inline SVG Loader

This is a simple webpack 5 loader for SVG files meant to be used as components
in Vue 3 templates.

This loader does not do any cleanup or optimization by itself; it's meant to be
used after `svgo-loader` has removed markup like `<?xml`, `<!doctype` and
comments.

## Installation

Add it to your development dependencies:

```sh
npm i -D @ifcanduela/vue-svg-loader
```

## Recommended usage

Add a `oneOf` rule to the `module.rules` list:

```js
module: {
  rules: [
    {
      test: /\.svg$/,
      oneOf: [
        {
            resourceQuery: /(vue)/,
            use: [
              "vue-loader",
              "@ifcanduela/vue-svg-loader",
              "svgo-loader",
            ]
        },
        { type: "asset" }
      ],
    },
  ],
},
```

Import SVGs in your Vue components and add `vue` querystring
parameter to convert them into components:

```html
<script setup>
    import ArrowUp from "../icons/arrow_up.svg?vue"
<script>
```

The query string (`?vue`) will instruct webpack to use the `vue-inline-svg-loader` and turn
the SVG into a valid Vue component. This querystring parameter can be changed to anything in
the webpack config.
npm package: @ifconfigla/nzip
Description: A fast & low-memory consuming archiver built on fflate and Node.js
Author: NZIP Contributors
Latest version: 1.0.3

# [NZIP](https://nzip.dev)

A fast & low-memory consuming archiver built on [fflate](https://github.com/101arrowz/fflate) and [Node.js](https://nodejs.org/en)

[https://github.com/ifconfigla/nzip](https://github.com/ifconfigla/nzip)

## Highlights

- Fast: Built on top of [fflate](https://github.com/101arrowz/fflate) which supports streaming and multi-threads.
- Modern: Written in 100% modern ES6 javascript with non-blocking asynchronous programming techniques.
- Low-memory: Using node.js stream API to consume lower memory resources as much as possible.
- Cross-platform: Runs on any machine where node.js is supported.

## Requirements

- Running from binary release

None (Binary from the [last release](https://github.com/ifconfigla/nzip/releases/latest) is the only requirement)

- Running from npx or npm install

Node.js LTS version (See the [official node.js download page](https://nodejs.org/en/download))

## Quickstart

### Installation & Running

- Running via [binary release](https://github.com/ifconfigla/nzip/releases/latest)

```bash
  $ nzip "fileToInclude1, fileToInclude2, folderToInclude1" "fileToExclude1"
```

- Running via npx (Without installation)

```bash
  $ npx nzip "fileToInclude1, fileToInclude2, folderToInclude1" "fileToExclude1"
```

or

```bash
  $ npx @ifconfigla/nzip "fileToInclude1, fileToInclude2, folderToInclude1" "fileToExclude1"
```

- Running via npm global install

```bash
  $ npm i -g nzip
  $ npm i -g @ifconfigla/nzip
  $ nzip "fileToInclude1, fileToInclude2, folderToInclude1" "fileToExclude1"
```

## Donations

- BTC:

```
15BrvbeHtNp5PuoUBdo95j7G2wWmpmq7Dg
```

- LTC:

```
LgK6hSbeyhE8UpsWM86z4rrCoKf38SWYH8
```

- DOGE:

```
DKjBYVArMGKXAJae1y3V9nvjZX9TVehSRL
```

- ETH:

```
0x34E3B113EBb270F2acbF312815c538EC1E12aec1
```

- XMR:

```
47qyY7CYdsDWsfpLoSUZP2Q5Hnnf3LteM9w2ZJ878XHAjAsd3ZHB6AUNb2BErfgsYA4Ne2SPLM5AzboABx4n9USJAYU5ZNZ
```
npm package: @ifct2017/abbreviations
Description: Full forms of abbreviations used in the original book.
Author: wolfram77@gmail.com
Latest version: 2.0.22

Full forms of [abbreviations] used in the original book.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/abbreviations),
📜 [Files](https://unpkg.com/@ifct2017/abbreviations/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const abbreviations = require('@ifct2017/abbreviations');
// abbreviations(query)
// → {abbr, full} if found, null otherwise.


abbreviations('GLV');
abbreviations('g l v');
// { abbr: 'GLV', full: 'Green Leafy Vegetables' }

abbreviations('what is D.R.I.');
abbreviations('d. r. i. stands for?');
// { abbr: 'DRI', full: 'Dietary reference intake' }


// Note:
// Full stops must immediately follow character, if present.
// For single character abbreviations, full stop is mandatory.
```

```javascript
// Additional methods:
abbreviations.load() // → corpus
abbreviations.sql([table], [options]) // → sql statements
abbreviations.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/130784019.svg)](https://zenodo.org/badge/latestdoi/130784019)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[abbreviations]: https://github.com/ifct2017/abbreviations/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1ZTzOOj827HhsUWhdISh1lOJsOh-dvh3ORbAPs9XHI1Q/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSPLlUvSc4OuO8cHl7kBntXJvolVWxklwZrbyNX0YfOaMMQpAi6iwf47If6wE1UyCTiBHUcx-UwLdb9/pubhtml
npm package: @ifct2017/carbohydrates
Description: Conversion of carbohydrate weights to monosaccharide equivalents.
Author: wolfram77@gmail.com
Latest version: 2.0.13

[Conversion of carbohydrate weights] to monosaccharide equivalents.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/carbohydrates),
📜 [Files](https://unpkg.com/@ifct2017/carbohydrates/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const carbohydrates = require('@ifct2017/carbohydrates');
// carbohydrates(query)
// → matches [{sno, carbohydrate, hydrolysis, monosaccharide}]


carbohydrates('monosaccharide');
carbohydrates('Glucose');
// [ { sno: '1',
//     carbohydrate: 'Monosaccharides e.g. glucose',
//     hydrolysis: 100,
//     monosaccharide: 1 } ]

carbohydrates('what is carbohydrate conversion factor of disaccharides?');
carbohydrates('maltose conversion factor');
// [ { sno: '2',
//     carbohydrate: 'Disaccharides e.g. sucrose, lactose, maltose',
//     hydrolysis: 105,
//     monosaccharide: 1.05 } ]
```

```javascript
// Additional methods:
carbohydrates.load() // → corpus
carbohydrates.sql([table], [options]) // → sql statements
carbohydrates.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/133046900.svg)](https://zenodo.org/badge/latestdoi/133046900)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Conversion of carbohydrate weights]: https://github.com/ifct2017/carbohydrates/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1YoEVoQFR0co_bTHL3Xok1dQfuqxXZa7yQrlUKbYVve4/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vQ4Ogyx4J5JWX3HQnHhoGt9HsmqNIZ5MFvDvHa2gkYSZg6vxtWeqPrzkyvh1_bmaXDgrsElNgAu1YKk/pubhtml
npm package: @ifct2017/codes
Description: Uniquely identifiable codes for each food.
Author: wolfram77@gmail.com
Latest version: 2.0.8

Uniquely identifiable [codes] for each food.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/codes),
📜 [Files](https://unpkg.com/@ifct2017/codes/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const codes = require('@ifct2017/codes');
// codes(query)
// → matches [{name, code}]


await codes.load();
/// Load corpus first

codes('mango green');
codes('Raw mango');
// [ { name: 'Mango, green, raw (Common)', code: 'D057' } ]

codes('what is food code of atta?');
codes('atta code');
// [ { name: 'Atta (H., P.)', code: 'A019' },
//   { name: 'Gahama atta (O.)', code: 'A019' },
//   { name: 'Wheat flour, atta (Common)', code: 'A019' } ]
```

```javascript
// Additional methods:
codes.load() // → corpus (promise)
codes.sql([table], [options]) // → sql statements (promise)
codes.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/133037928.svg)](https://zenodo.org/badge/latestdoi/133037928)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[codes]: https://github.com/ifct2017/codes/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1Q-M1C3DAEhoA6y7X89M3Fl_zml__v0Mr-fJAYBJkLJc/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSZD-_xy9EvbEM2axafTL251gWsCPUYRZA8wAUvscy0MZmHS9bCOpbvqJQsbf5TujlOA8FmL91bOzF8/pubhtml
npm package: @ifct2017/columns
Description: Codes and names of nutrients, and its components.
Author: wolfram77@gmail.com
Latest version: 2.0.13

[Codes and names] of nutrients, and its components.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/columns),
📜 [Files](https://unpkg.com/@ifct2017/columns/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const columns = require('@ifct2017/columns');
// columns(query)
// → matches [{code, name, tags}]


columns('vitamin c');
columns('c-vitamin');
// [ { code: 'vitc',
//     name: 'Ascorbic acids (C)',
//     tags: 'total ascorbate water soluble vitamin c vitamin c essential' } ]

columns('what is butyric acid?');
columns('c4:0 stands for?');
// [ { code: 'f4d0',
//     name: 'Butyric acid (C4:0)',
//     tags: 'c40 c 40 4 0 bta butanoic propanecarboxylic carboxylic saturated fatty fat triglyceride lipid colorless liquid unpleasant vomit body odor' } ]
```

```javascript
// Additional methods:
columns.load() // → corpus
columns.sql([table], [options]) // → sql statements
columns.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/130800254.svg)](https://zenodo.org/badge/latestdoi/130800254)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Codes and names]: https://github.com/ifct2017/columns/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
npm package: @ifct2017/compositingcentres
Description: Regional compositing centres and sample size of each region.
Author: wolfram77@gmail.com
Latest version: 2.0.14

Regional [compositing centres] and sample size of each region.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/compositingcentres),
📜 [Files](https://unpkg.com/@ifct2017/compositingcentres/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const compositingCentres = require('@ifct2017/compositingcentres');
// compositingCentres(query)
// → matches [{region, centre, samples}]


compositingCentres('west');
compositingCentres('Mumbai');
// [ { region: 'West', centre: 'Mumbai', samples: 12 } ]

compositingCentres('what is compositing centre of north east?');
compositingCentres('North East compositing centre');
// [ { region: 'North East', centre: 'Guwahati', samples: 11 } ]
```

```javascript
// Additional methods:
compositingCentres.load() // → corpus
compositingCentres.sql([table], [options]) // → sql statements
compositingCentres.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/133018123.svg)](https://zenodo.org/badge/latestdoi/133018123)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[compositing centres]: https://github.com/ifct2017/compositingcentres/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1r9J5mC-Dus9YA1AMSE_8-cEsXJ-8eKm6tKZMz0m5xPw/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vQQj5wg7oGpgHZSlmrysbeS7MB92bgyPPVYrM7e2JpP2dC2Csts9pVc_Dcf0iVcCbtXSaWKbvQr0Yib/pubhtml
npm package: @ifct2017/compositions
Description: Detailed nutrient composition of 528 key foods in India.
Author: wolfram77@gmail.com
Latest version: 2.0.9

Detailed [nutrient composition] of 528 key foods in India.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/compositions),
📜 [Files](https://unpkg.com/@ifct2017/compositions/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const compositions = require('@ifct2017/compositions');
// compositions(query)
// → matches [{code, name, scie, lang, grup, regn, tags, ...}]


await compositions.load();
/// Load corpus first

compositions('pineapple');
compositions('ananas comosus');
// [ { code: 'E053',
//     name: 'Pineapple',
//     scie: 'Ananas comosus',
//     lang: 'A. Ahnaros; B. Anarasa; G. Anenas; H. Ananas; Kan. Ananas; Kash. Punchitipul; Kh. Soh trun; Kon. Anas; Mal. Kayirha chakka; M. Kihom Ananas; O. Sapuri; P. Ananas; Tam. Annasi pazham; Tel. Anasa pandu; U. Ananas.',
//     ... } ]

compositions('tell me about cow milk.');
compositions('gai ka doodh details.');
// [ { code: 'L002',
//     name: 'Milk, Cow',
//     scie: '',
//     lang: 'A. Garoor gakhir; B. Doodh (garu); G. Gai nu dhudh; H. Gai ka doodh; Kan. Hasuvina halu; Kash. Doodh; Kh. Dud masi; M. San Sanghom; Mar. Doodh (gay); O. Gai dudha; P. Gaan da doodh; S. Gow kshiram; Tam. Pasumpaal; Tel. Aavu paalu.',
//     ... } ]
```

```javascript
// Additional methods:
compositions.load() // → corpus (promise)
compositions.sql([table], [options]) // → sql statements (promise)
compositions.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/134217841.svg)](https://zenodo.org/badge/latestdoi/134217841)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage], [Tables document], [Tables webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[nutrient composition]: https://github.com/ifct2017/compositions/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/19C2EB4PIMgyusqKOnBq4-aBQxLjCai1Zg45YcBNTzFo/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vRAWAh3wLrPjDfeZ2pmApbwnvJ11CxdWaPiJ4BPClyN9X1wbbCjvfyqYpBy-LoIBltsH7MKjtNATtAh/pubhtml
[Tables document]: https://docs.google.com/spreadsheets/d/1ejgqo6uwlKRF3QLUPJJzrTkd47GtVXgHHsgG-T27uGc/edit?usp=sharing
[Tables webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vTNaOhfRaF_DxH5yh4QtW2D3iJSM4MRIKB-P_cFRlHGhEzWo5NP5ADmAzrpXH2fsjmzJEOMbmaBFMgq/pubhtml
npm package: @ifct2017/contents
Description: Contents in the original book.
Author: wolfram77@gmail.com
Latest version: 2.0.27

[Contents] in the original book.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/contents),
📜 [Files](https://unpkg.com/@ifct2017/contents/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const contents = require('@ifct2017/contents');
// contents(query)
// → matches [{sno, title, pagenos}]


contents('table 2');
contents('Water soluble vitamins');
// [ { sno: '6.2.',
//     title: 'Table 2:  Water Soluble Vitamins',
//     pagenos: '31' } ]

contents('what is page number of table 3?');
contents('fat soluble vitamin page number');
// [ { sno: '6.3.',
//     title: 'Table 3:  Fat Soluble Vitamins',
//     pagenos: '61' } ]
```

```javascript
// Additional methods:
contents.load() // → corpus
contents.sql([table], [options]) // → sql statements
contents.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/133055983.svg)](https://zenodo.org/badge/latestdoi/133055983)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Contents]: https://github.com/ifct2017/contents/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
npm package: @ifct2017/descriptions
Description: Names of each food in local languages, including scientific name.
Author: wolfram77@gmail.com
Latest version: 2.0.7

[Names] of each food in local languages, including scientific name.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/descriptions),
📜 [Files](https://unpkg.com/@ifct2017/descriptions/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const descriptions = require('@ifct2017/descriptions');
// descriptions(query)
// → matches [{code, name, scie, desc}]


await descriptions.load();
/// Load corpus first

descriptions('pineapple');
descriptions('ananas comosus');
// [ { code: 'E053',
//     name: 'Pineapple',
//     scie: 'Ananas comosus',
//     desc: 'A. Ahnaros; B. Anarasa; G. Anenas; H. Ananas; Kan. Ananas; Kash. Punchitipul; Kh. Soh trun; Kon. Anas; Mal. Kayirha chakka; M. Kihom Ananas; O. Sapuri; P. Ananas; Tam. Annasi pazham; Tel. Anasa pandu; U. Ananas.' } ]

descriptions('tell me about cow milk.');
descriptions('gai ka doodh details.');
// [ { code: 'L002',
//     name: 'Milk, Cow',
//     scie: '',
//     desc: 'A. Garoor gakhir; B. Doodh (garu); G. Gai nu dhudh; H. Gai ka doodh; Kan. Hasuvina halu; Kash. Doodh; Kh. Dud masi; M. San Sanghom; Mar. Doodh (gay); O. Gai dudha; P. Gaan da doodh; S. Gow kshiram; Tam. Pasumpaal; Tel. Aavu paalu.' } ]
```

```javascript
// Additional methods:
descriptions.load() // → corpus (promise)
descriptions.sql([table], [options]) // → sql statements (promise)
descriptions.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/130876119.svg)](https://zenodo.org/badge/latestdoi/130876119)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Names]: https://github.com/ifct2017/descriptions/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1dRKW2HJyWxDJliONe_URNxM0gPBmgZKqoF5lBotxOT8/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSueRUdwru4BNvmLCK16cM8DYO3mum4c-g_8MILZvg6TsT3vaZChWOwN5cUS58GtrXMKqZHeHy0ajeG/pubhtml
npm package: @ifct2017/energies
Description: Metabolizeable energy conversion factors.
Author: wolfram77@gmail.com
Latest version: 2.0.12

Metabolizable [energy conversion factors].<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/energies),
📜 [Files](https://unpkg.com/@ifct2017/energies/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const energies = require('@ifct2017/energies');
// energies(query)
// → matches [{component, kj, kcal}]


energies('dietary fibre');
energies('Soluble fibre');
// [ { component: 'Fibre', kj: 8, kcal: 2 } ]

energies('what is energy conversion factor of fat?');
energies('conversion factor of fat');
// [ { component: 'Fat', kj: 37, kcal: 9 } ]
```

```javascript
// Additional methods:
energies.load() // → corpus
energies.sql([table], [options]) // → sql statements
energies.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/132987518.svg)](https://zenodo.org/badge/latestdoi/132987518)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[energy conversion factors]: https://github.com/ifct2017/energies/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1Go_O1rv7gwDw9GFx5S9-eBOOEueyrSnqf2KmQmB5ZEw/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vRbNMeTawz-rXs53C9NTcMkJVnLCzJ79kxbOahFhq49Q7qDFMApQ5fcFvUoTGs6nDyHshtwcIzXMLiM/pubhtml
npm package: @ifct2017/frequencydistribution
Description: Frequency distribution of States/UTs for fixing the number of districts to be sampled.
Author: wolfram77@gmail.com
Latest version: 2.0.15

[Frequency distribution] of States/UTs for fixing the number of districts to be sampled.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/frequencydistribution),
📜 [Files](https://unpkg.com/@ifct2017/frequencydistribution/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const frequencyDistribution = require('@ifct2017/frequencydistribution');
// frequencyDistribution(districts)
// → {districts, states, selected, sampled} if found, null otherwise


frequencyDistribution(2);
frequencyDistribution(5);
// { districts: '1-5', states: 9, selected: 1, sampled: 9 }

frequencyDistribution(32);
frequencyDistribution(37);
// { districts: '31-40', states: 4, selected: 5, sampled: 20 }
```

```javascript
// Additional methods:
frequencyDistribution.load() // → corpus
frequencyDistribution.sql([table], [options]) // → sql statements
frequencyDistribution.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/132989662.svg)](https://zenodo.org/badge/latestdoi/132989662)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Frequency distribution]: https://github.com/ifct2017/frequencydistribution/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
npm package: @ifct2017/groups
Description: Categorization of food by their common names.
Author: wolfram77@gmail.com
Latest version: 2.0.12

[Categorization] of food by their common names.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/groups),
📜 [Files](https://unpkg.com/@ifct2017/groups/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const groups = require('@ifct2017/groups');
// groups(query)
// → matches [{code, group, entries, tags}]


groups('cereals');
groups('Millet');
// [ { code: 'A',
//     group: 'Cereals and Millets',
//     entries: 24,
//     tags: 'vegetarian eggetarian fishetarian veg' } ]

groups('what is vegetable?');
groups('vegetable group code?');
// [ { code: 'D',
//     group: 'Other Vegetables',
//     entries: 78,
//     tags: 'vegetarian eggetarian fishetarian veg' },
//   { code: 'C',
//     group: 'Green Leafy Vegetables',
//     entries: 34,
//     tags: 'vegetarian eggetarian fishetarian veg' } ]
```

```javascript
// Additional methods:
groups.load() // → corpus
groups.sql([table], [options]) // → sql statements
groups.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/132839826.svg)](https://zenodo.org/badge/latestdoi/132839826)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Categorization]: https://github.com/ifct2017/groups/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/1PMR0TZLLYsS70lcC0Bap4oNrI1azgmuGx9ekfHJB_0Q/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vSsXdKiSvWypa6aJlCfl_eKIzAOfESO_wHITJtPik3K1goIy81hciSjmTCqFjmFv1cqrLdnYhg1Q3O1/pubhtml
npm package: @ifct2017/hierarchy
Description: Tree-like hierarchy of nutrients, and its components.
Author: wolfram77@gmail.com
Latest version: 2.0.9

Tree-like [hierarchy] of nutrients, and its components.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/hierarchy),
📜 [Files](https://unpkg.com/@ifct2017/hierarchy/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const hierarchy = require('@ifct2017/hierarchy');
// hierarchy(query)
// → {parents, ancestry, children} if found, null otherwise


hierarchy('soluble oxalic acid');
hierarchy('Soluble Oxalic Acid');
// { parents: 'oxalt', ancestry: 'oxalt orgac', children: '' }

hierarchy('what is hierarchy of total saturated fat?');
hierarchy('who are children of total saturated fat?');
// { parents: 'fatce',
//   ancestry: 'fatce',
//   children:
//    'f4d0 f6d0 f8d0 f10d0 f11d0 f12d0 f14d0 f15d0 f16d0 f18d0 f20d0 f22d0 f24d0' }
```

```javascript
hierarchy.load() // → corpus
hierarchy.sql([table], [options]) // → sql statements
hierarchy.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/143575105.svg)](https://zenodo.org/badge/latestdoi/143575105)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[hierarchy]: https://github.com/ifct2017/hierarchy/blob/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/174DDCwdVRZ0RQT8zfGFSciQltA2sIHIIRXkWiejU_JQ/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vR1C-FJ2driNzJ_rRVmftv_wYPo4Rz4SJKGEo-pFNccvbF3nsAFj2zmbiGHDGlX4YnozoqMydg0xBwZ/pubhtml
npm package: @ifct2017/intakes
Description: Recommended daily intakes of nutrients.
Author: wolfram77@gmail.com
Latest version: 2.0.9

[Recommended daily intakes] of nutrients.<br>
📦 [Node.js](https://www.npmjs.com/package/@ifct2017/intakes),
📜 [Files](https://unpkg.com/@ifct2017/intakes/).

> This is part of package [ifct2017].<br>
> Online database: [ifct2017.github.io].

<br>

```javascript
const intakes = require('@ifct2017/intakes');
// intakes(query)
// → matches [{code, whorda, usear, usrdam, usrdaf, euprim, euprif, ulus, uleu, uljapan}]


intakes('his');
intakes('Histidine');
// [{ code: 'his',
//    whorda: -0.01,
//    usear: NaN,
//    usrdam: -0.014,
//    usrdaf: NaN,
//    euprim: NaN,
//    euprif: NaN,
//    ulus: NaN,
//    uleu: NaN,
//    uljapan: NaN }]

intakes('intake of total fibre?');
intakes('what is rda of total fiber?');
// [{ code: 'fibtg',
//    whorda: NaN,
//    usear: NaN,
//    usrdam: 38,
//    usrdaf: 25,
//    euprim: NaN,
//    euprif: NaN,
//    ulus: NaN,
//    uleu: NaN,
//    uljapan: NaN }]


// Note:
// +ve value indicates amount in grams.
// -ve value indicates amount in grams per kg of body weight.
// NaN indicates no recommentation given.

// Note:
// whorda: WHO Recommended Dietary Allowance
// usear:  US Estimated Average Requirement
// usrdam: US Recommended Dietary Allowance (Male)
// usrdaf: US Recommended Dietary Allowance (Female)
// euprim: EU Population Reference Intake (Male)
// euprif: EU Population Reference Intake (Female)
// ulus: Tolerable intake Upper Level (US)
// uleu: Tolerable intake Upper Level (EU)
// uljapan: Tolerable intake Upper Level (Japan)
```

```javascript
// Additional methods:
intakes.load() // → corpus
intakes.sql([table], [options]) // → sql statements
intakes.csv() // → path of csv file
```

<br>
<br>

[![](https://i.imgur.com/D5UYmbD.jpg)](http://ifct2017.com/)<br>
[![ORG](https://img.shields.io/badge/org-ifct2017-green?logo=Org)](https://ifct2017.github.io)
[![DOI](https://zenodo.org/badge/140101929.svg)](https://zenodo.org/badge/latestdoi/140101929)

> Data was obtained from the book [Indian Food Composition Tables 2017].<br>
> Food composition values were measured by [National Institute of Nutrition, Hyderabad].<br>
> Take a peek at the raw data here: [Document], [Webpage].

[ifct2017]: https://www.npmjs.com/package/ifct2017
[Indian Food Composition Tables 2017]: http://ifct2017.com/
[Recommended daily intakes]: https://github.com/ifct2017/intakes/tree/master/index.csv
[ifct2017.github.io]: https://ifct2017.github.io
[National Institute of Nutrition, Hyderabad]: https://www.nin.res.in/
[Document]: https://docs.google.com/spreadsheets/d/14rD34GjeJ6jx9-RXLa7zu4m_896CojCP4qSTPKeWLEU/edit?usp=sharing
[Webpage]: https://docs.google.com/spreadsheets/d/e/2PACX-1vShOB5MaBlnccsBXPGT1KbG3442fF7ZPChdJCm7Ez3C9ejVF6503gMY28dOOdBJRDpCLL9o0BfJO8Nj/pubhtml