ifct2017 2.0.9 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +7 -3
- package/corpus.js +6 -0
- package/index.d.ts +21 -23
- package/index.js +29 -29
- package/package.json +30 -29
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
The Indian Food Composition tables ([IFCT 2017]) provides nutritional values for 528 key foods
|
|
1
|
+
The Indian Food Composition tables ([IFCT 2017]) provides nutritional values for 528 key foods.<br>
|
|
2
|
+
📦 [Node.js](https://www.npmjs.com/package/ifct2017),
|
|
3
|
+
📜 [Files](https://unpkg.com/ifct2017/).
|
|
4
|
+
|
|
2
5
|
Food composition values were measured by [National Institute of Nutrition, Hyderabad]. Shown
|
|
3
|
-
below is a text-query
|
|
6
|
+
below is a text-query JavaScript API for search information through these tables. You may
|
|
4
7
|
also add these to a database for more control over the query.
|
|
5
8
|
|
|
6
9
|
> Online database: [ifct2017.github.io].
|
|
@@ -90,7 +93,8 @@ main();
|
|
|
90
93
|
<br>
|
|
91
94
|
<br>
|
|
92
95
|
|
|
93
|
-
[](http://ifct2017.com/)
|
|
96
|
+
[](http://ifct2017.com/)<br>
|
|
97
|
+
[](https://ifct2017.github.io)
|
|
94
98
|
|
|
95
99
|
[abbreviations]: https://www.npmjs.com/package/@ifct2017/abbreviations
|
|
96
100
|
[about]: https://www.npmjs.com/package/@ifct2017/about
|
package/corpus.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
exports.columns = require('@ifct2017/columns/corpus');
|
|
2
|
+
exports.hierarchy = require('@ifct2017/hierarchy/corpus');
|
|
3
|
+
exports.intakes = require('@ifct2017/intakes/corpus');
|
|
4
|
+
exports.methods = require('@ifct2017/methods/corpus');
|
|
5
|
+
exports.nutrients = require('@ifct2017/nutrients/corpus');
|
|
6
|
+
exports.representations = require('@ifct2017/representations/corpus');
|
package/index.d.ts
CHANGED
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as energies from '@ifct2017/energies';
|
|
1
|
+
import * as abbreviations from '@ifct2017/abbreviations';
|
|
2
|
+
import * as about from '@ifct2017/about';
|
|
3
|
+
import * as carbohydrates from '@ifct2017/carbohydrates';
|
|
4
|
+
import * as codes from '@ifct2017/codes';
|
|
5
|
+
import * as columns from '@ifct2017/columns';
|
|
6
|
+
import * as compositingCentres from '@ifct2017/compositingcentres';
|
|
7
|
+
import * as compositions from '@ifct2017/compositions';
|
|
8
|
+
import * as contents from '@ifct2017/contents';
|
|
9
|
+
import * as descriptions from '@ifct2017/descriptions';
|
|
10
|
+
import * as energies from '@ifct2017/energies';
|
|
12
11
|
import * as frequencyDistribution from '@ifct2017/frequencydistribution';
|
|
13
|
-
import * as groups
|
|
14
|
-
import * as hierarchy
|
|
15
|
-
import * as intakes
|
|
16
|
-
import * as jonesFactors
|
|
17
|
-
import * as languages
|
|
18
|
-
import * as methods
|
|
19
|
-
import * as nutrients
|
|
20
|
-
import * as regions
|
|
21
|
-
import * as representations
|
|
22
|
-
import * as samplingUnits
|
|
23
|
-
import * as pictures
|
|
12
|
+
import * as groups from '@ifct2017/groups';
|
|
13
|
+
import * as hierarchy from '@ifct2017/hierarchy';
|
|
14
|
+
import * as intakes from '@ifct2017/intakes';
|
|
15
|
+
import * as jonesFactors from '@ifct2017/jonesfactors';
|
|
16
|
+
import * as languages from '@ifct2017/languages';
|
|
17
|
+
import * as methods from '@ifct2017/methods';
|
|
18
|
+
import * as nutrients from '@ifct2017/nutrients';
|
|
19
|
+
import * as regions from '@ifct2017/regions';
|
|
20
|
+
import * as representations from '@ifct2017/representations';
|
|
21
|
+
import * as samplingUnits from '@ifct2017/samplingunits';
|
|
22
|
+
import * as pictures from './pictures';
|
|
24
23
|
export {
|
|
25
24
|
abbreviations, about, carbohydrates, codes, columns, compositingCentres,
|
|
26
25
|
compositions, contents, descriptions, energies, frequencyDistribution,
|
|
27
26
|
groups, hierarchy, intakes, jonesFactors, languages, methods, nutrients,
|
|
28
27
|
pictures, regions, representations, samplingUnits
|
|
29
28
|
};
|
|
30
|
-
}
|
package/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
function pictures(
|
|
1
|
+
function pictures(code) {
|
|
2
2
|
return null;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
function unpkg(
|
|
6
|
-
if(
|
|
7
|
-
return `https://unpkg.com/@ifct2017/pictures/assets/${
|
|
5
|
+
function unpkg(code) {
|
|
6
|
+
if(code[0]>='M' && code[0]<'P') return null;
|
|
7
|
+
return `https://unpkg.com/@ifct2017/pictures/assets/${code}.jpeg`;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
function jsdelivr(
|
|
11
|
-
if(
|
|
12
|
-
return `https://cdn.jsdelivr.net/npm/@ifct2017/pictures/assets/${
|
|
10
|
+
function jsdelivr(code) {
|
|
11
|
+
if(code[0]>='M' && code[0]<'P') return null;
|
|
12
|
+
return `https://cdn.jsdelivr.net/npm/@ifct2017/pictures/assets/${code}.jpeg`;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.abbreviations
|
|
17
|
-
exports.about
|
|
18
|
-
exports.carbohydrates
|
|
19
|
-
exports.codes
|
|
20
|
-
exports.columns
|
|
21
|
-
exports.compositingCentres
|
|
22
|
-
exports.compositions
|
|
23
|
-
exports.contents
|
|
24
|
-
exports.descriptions
|
|
25
|
-
exports.energies
|
|
16
|
+
exports.abbreviations = require('@ifct2017/abbreviations');
|
|
17
|
+
exports.about = require('@ifct2017/about');
|
|
18
|
+
exports.carbohydrates = require('@ifct2017/carbohydrates');
|
|
19
|
+
exports.codes = require('@ifct2017/codes');
|
|
20
|
+
exports.columns = require('@ifct2017/columns');
|
|
21
|
+
exports.compositingCentres = require('@ifct2017/compositingcentres');
|
|
22
|
+
exports.compositions = require('@ifct2017/compositions');
|
|
23
|
+
exports.contents = require('@ifct2017/contents');
|
|
24
|
+
exports.descriptions = require('@ifct2017/descriptions');
|
|
25
|
+
exports.energies = require('@ifct2017/energies');
|
|
26
26
|
exports.frequencyDistribution = require('@ifct2017/frequencydistribution');
|
|
27
|
-
exports.groups
|
|
28
|
-
exports.hierarchy
|
|
29
|
-
exports.intakes
|
|
30
|
-
exports.jonesFactors
|
|
31
|
-
exports.languages
|
|
32
|
-
exports.methods
|
|
33
|
-
exports.nutrients
|
|
34
|
-
exports.regions
|
|
35
|
-
exports.representations
|
|
36
|
-
exports.samplingUnits
|
|
37
|
-
pictures.unpkg
|
|
27
|
+
exports.groups = require('@ifct2017/groups');
|
|
28
|
+
exports.hierarchy = require('@ifct2017/hierarchy');
|
|
29
|
+
exports.intakes = require('@ifct2017/intakes');
|
|
30
|
+
exports.jonesFactors = require('@ifct2017/jonesfactors');
|
|
31
|
+
exports.languages = require('@ifct2017/languages');
|
|
32
|
+
exports.methods = require('@ifct2017/methods');
|
|
33
|
+
exports.nutrients = require('@ifct2017/nutrients');
|
|
34
|
+
exports.regions = require('@ifct2017/regions');
|
|
35
|
+
exports.representations = require('@ifct2017/representations');
|
|
36
|
+
exports.samplingUnits = require('@ifct2017/samplingunits');
|
|
37
|
+
pictures.unpkg = unpkg;
|
|
38
38
|
pictures.jsdelivr = jsdelivr;
|
|
39
|
-
exports.pictures
|
|
39
|
+
exports.pictures = pictures;
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ifct2017",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "The Indian Food Composition tables (IFCT 2017) provides nutritional values for 528 key foods.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"test": "node ./build && node ./test",
|
|
7
8
|
"build": "node ./build",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/ifct2017/ifct2017.git"
|
|
9
|
+
"publish-docs": "node ./build publish-docs",
|
|
10
|
+
"publish-packages": "node ./build publish-packages"
|
|
14
11
|
},
|
|
15
12
|
"keywords": [
|
|
16
13
|
"ifct",
|
|
@@ -34,34 +31,38 @@
|
|
|
34
31
|
],
|
|
35
32
|
"author": "wolfram77@gmail.com",
|
|
36
33
|
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/ifct2017/ifct2017.git"
|
|
37
|
+
},
|
|
37
38
|
"bugs": {
|
|
38
39
|
"url": "https://github.com/ifct2017/ifct2017/issues"
|
|
39
40
|
},
|
|
40
41
|
"homepage": "https://github.com/ifct2017/ifct2017#readme",
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@ifct2017/abbreviations": "^2.0.
|
|
43
|
-
"@ifct2017/about": "^2.0.
|
|
44
|
-
"@ifct2017/carbohydrates": "^2.0.
|
|
45
|
-
"@ifct2017/codes": "^2.0.
|
|
46
|
-
"@ifct2017/columns": "^2.0.
|
|
47
|
-
"@ifct2017/compositingcentres": "^2.0.
|
|
48
|
-
"@ifct2017/compositions": "^2.0.
|
|
49
|
-
"@ifct2017/contents": "^2.0.
|
|
50
|
-
"@ifct2017/descriptions": "^2.0.
|
|
51
|
-
"@ifct2017/energies": "^2.0.
|
|
52
|
-
"@ifct2017/frequencydistribution": "^2.0.
|
|
53
|
-
"@ifct2017/groups": "^2.0.
|
|
54
|
-
"@ifct2017/hierarchy": "^2.0.
|
|
55
|
-
"@ifct2017/intakes": "^2.0.
|
|
56
|
-
"@ifct2017/jonesfactors": "^2.0.
|
|
57
|
-
"@ifct2017/languages": "^2.0.
|
|
58
|
-
"@ifct2017/methods": "^2.0.
|
|
59
|
-
"@ifct2017/nutrients": "^2.0.
|
|
60
|
-
"@ifct2017/regions": "^2.0.
|
|
61
|
-
"@ifct2017/representations": "^2.0.
|
|
62
|
-
"@ifct2017/samplingunits": "^2.0.
|
|
43
|
+
"@ifct2017/abbreviations": "^2.0.22",
|
|
44
|
+
"@ifct2017/about": "^2.0.18",
|
|
45
|
+
"@ifct2017/carbohydrates": "^2.0.12",
|
|
46
|
+
"@ifct2017/codes": "^2.0.8",
|
|
47
|
+
"@ifct2017/columns": "^2.0.13",
|
|
48
|
+
"@ifct2017/compositingcentres": "^2.0.14",
|
|
49
|
+
"@ifct2017/compositions": "^2.0.8",
|
|
50
|
+
"@ifct2017/contents": "^2.0.27",
|
|
51
|
+
"@ifct2017/descriptions": "^2.0.7",
|
|
52
|
+
"@ifct2017/energies": "^2.0.12",
|
|
53
|
+
"@ifct2017/frequencydistribution": "^2.0.15",
|
|
54
|
+
"@ifct2017/groups": "^2.0.11",
|
|
55
|
+
"@ifct2017/hierarchy": "^2.0.9",
|
|
56
|
+
"@ifct2017/intakes": "^2.0.9",
|
|
57
|
+
"@ifct2017/jonesfactors": "^2.0.11",
|
|
58
|
+
"@ifct2017/languages": "^2.0.12",
|
|
59
|
+
"@ifct2017/methods": "^2.0.11",
|
|
60
|
+
"@ifct2017/nutrients": "^2.0.8",
|
|
61
|
+
"@ifct2017/regions": "^2.0.12",
|
|
62
|
+
"@ifct2017/representations": "^2.0.11",
|
|
63
|
+
"@ifct2017/samplingunits": "^2.0.14"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
|
-
"extra-build": "^
|
|
66
|
+
"extra-build": "^2.2.29"
|
|
66
67
|
}
|
|
67
68
|
}
|