Package Exports
- food-ins
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (food-ins) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
Method | Action |
---|---|
foodins | Lists matching food additives. |
load | Preloads food additive data (before use). |
sql | Gives commands to insert data to SQL database. |
csv | Gives path of data CSV file. |
corpus | Keeps food additive data. {field} |
Browserified, minified version of this package is food-ins.min.