Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodef/food-e
E numbers are codes for substances that are permitted to be used as food additives
https://github.com/nodef/food-e
additive code color e efta europian food number preservative union
Last synced: about 1 month ago
JSON representation
E numbers are codes for substances that are permitted to be used as food additives
- Host: GitHub
- URL: https://github.com/nodef/food-e
- Owner: nodef
- License: mit
- Created: 2020-02-09T22:06:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T10:12:17.000Z (almost 2 years ago)
- Last Synced: 2024-11-18T19:01:44.838Z (about 1 month ago)
- Topics: additive, code, color, e, efta, europian, food, number, preservative, union
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/food-e
- Size: 117 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[E numbers] are codes for substances that are permitted to be used as [food additives]
for use within the [European Union] and [EFTA]. Commonly found on [food labels],
their safety assessment and approval are the responsibility of the
[European Food Safety Authority].Having a single unified list for food additives was first agreed upon in 1962 with
[food colouring]. In 1964, the directives for preservatives were added, 1970 for
antioxidants and 1974 for the emulsifiers, stabilisers, thickeners and gelling
agents.## console
```bash
foode "E101a"
# E101a: Riboflavin-5'-Phosphate
# .type: color (Yellow-orange); .status: efoode "101 a"
# E101a: Riboflavin-5'-Phosphate
# .type: color (Yellow-orange); .status: efoode "riboflavin"
# E101a: Riboflavin-5'-Phosphate
# .type: color (Yellow-orange); .status: e
#
# E106: Riboflavin-5-Sodium Phosphate
# .type: color (Yellow); .status:
# ...
```### reference
```bash
foode [options]
# query: code, name, type, or status of food additive
# Options:
# --help: show this help
# --silent: hide error messages# Environment variables:
$FOODE_SILENT # hide error messages (0)
```## javascript
```javascript
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: '' },
// ... ]
```### reference
| Method | Action
|---------------------|-------
| [foode] | 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}
[![nodef](https://merferry.glitch.me/card/food-e.svg)](https://nodef.github.io)
> Browserified, minified version of this package is [food-e.min].
[foode]: https://github.com/nodef/food-e/wiki
[load]: https://github.com/nodef/food-e/wiki/load
[sql]: https://github.com/nodef/food-e/wiki/sql
[csv]: https://github.com/nodef/food-e/wiki/csv
[corpus]: https://github.com/nodef/food-e/wiki/corpus
[E numbers]: https://en.wikipedia.org/wiki/E_number
[food additives]: https://en.wikipedia.org/wiki/Food_additive
[European Union]: https://en.wikipedia.org/wiki/European_Union
[EFTA]: https://en.wikipedia.org/wiki/European_Free_Trade_Association
[food labels]: https://en.wikipedia.org/wiki/Food_label
[European Food Safety Authority]: https://en.wikipedia.org/wiki/European_Food_Safety_Authority
[food colouring]: https://en.wikipedia.org/wiki/Food_colouring
[food-e.min]: https://www.npmjs.com/package/food-e.min