2.0.11 ā€¢ Published 2 years ago

@ifct2017/representations v2.0.11

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Representations of columns (as factors and units). šŸ“¦ Node.js, šŸ“œ Files.

This is part of package ifct2017. Online database: ifct2017.github.io.

const representations = require('@ifct2017/representations');
// representations(query)
// ā†’ {type, factor, unit} if found, null otherwise


representations('his');
representations('Histidine');
// { type: 'mass', factor: 1000, unit: 'mg' }

representations('representation of vitamin d?');
representations('what is unit of ergocalciferol?');
// { type: 'mass', factor: 1000000000, unit: 'ng' }


// Note:
// type:   Type of physical quantity
// factor: Multiplication factor
// unit:   Unit symbol
// Additional methods:
representations.load() // ā†’ corpus
representations.sql([table], [options]) // ā†’ sql statements
representations.csv() // ā†’ path of csv file

npm.io ORG DOI

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

2.0.11

2 years ago

2.0.10

2 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago