-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Subhajit Sahu edited this page Feb 10, 2020
·
5 revisions
Lists matching food additives.
foode(query);
// query: code, name, type, or status of food additive
// --> [{code, names, type, status}]
const foode = require('food-e');
foode('E101a');
// [ { code: 'E101a',
// names: 'Riboflavin-5\'-Phosphate',
// type: 'color (Yellow-orange)',
// status: 'e' } ]
foode('101 a');
// [ { code: 'E101a',
// names: 'Riboflavin-5\'-Phosphate',
// type: 'color (Yellow-orange)',
// status: 'e' } ]
foode('riboflavin');
// [ { code: 'E101a',
// names: 'Riboflavin-5\'-Phosphate',
// type: 'color (Yellow-orange)',
// status: 'e' },
// { code: 'E106',
// names: 'Riboflavin-5-Sodium Phosphate',
// type: 'color (Yellow)',
// status: '' },
// ... ]