1.0.15 • Published 3 years ago

food-ins v1.0.15

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

The International Numbering System for Food Additives (INS) is a European-based naming system for food additives. It is defined by Codex Alimentarius, the WHO, and the FAO.

Class Names and the International Numbering System for Food Additives, was first published in 1989, with revisions in 2008 and 2011. The INS is an open list, "subject to the inclusion of additional additives or removal of existing ones on an ongoing basis".

console

foodins "102"
# 102: tartrazine
# .type: colour (yellow and orange) (FDA: FD&C Yellow #5); .status: a e

foodins "ins 102"
# 102: tartrazine
# .type: colour (yellow and orange) (FDA: FD&C Yellow #5); .status: a e

foodins "ins 160 d (iii)"
# 160d(iii): lycopene, Blakeslea trispora
# .type: colour; .status: a e
#
# 160d: lycopenes
# .type: ; .status: a e
# ...

reference

foodins [options] <query>
# query: code, name, type, or status of food additive
# Options:
# --help: show this help
# --silent: hide error messages

# Environment variables:
$FOODINS_SILENT # hide error messages (0)

javascript

const foodins = require('food-ins');

foodins('102');
// [ { code: '102',
//     names: 'tartrazine',
//     type: 'colour (yellow and orange) (FDA: FD&C Yellow #5)',
//     status: 'a e' } ]

foodins('ins 102');
// [ { code: '102',
//     names: 'tartrazine',
//     type: 'colour (yellow and orange) (FDA: FD&C Yellow #5)',
//     status: 'a e' } ]

foodins('ins 160 d (iii)');
// [ { code: '160d(iii)',
//     names: 'lycopene, Blakeslea trispora',
//     type: 'colour',
//     status: 'a e' },
//   { code: '160d', names: 'lycopenes', type: '', status: 'a e' },
//   ... ]

reference

MethodAction
foodinsLists matching food additives.
loadPreloads food additive data (before use).
sqlGives commands to insert data to SQL database.
csvGives path of data CSV file.
corpusKeeps food additive data. {field}

nodef

Browserified, minified version of this package is food-ins.min.

1.0.15

3 years ago

1.0.14

3 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

2.0.0

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

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