{"id":21831358,"url":"https://github.com/nodef/food-e","last_synced_at":"2025-04-14T07:07:08.617Z","repository":{"id":40701355,"uuid":"239381561","full_name":"nodef/food-e","owner":"nodef","description":"E numbers are codes for substances that are permitted to be used as food additives","archived":false,"fork":false,"pushed_at":"2025-04-08T17:13:33.000Z","size":122,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T07:06:53.679Z","etag":null,"topics":["additive","code","color","e","efta","europian","food","number","preservative","union"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/food-e","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-09T22:06:14.000Z","updated_at":"2025-04-08T17:13:37.000Z","dependencies_parsed_at":"2023-02-09T19:16:06.860Z","dependency_job_id":null,"html_url":"https://github.com/nodef/food-e","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Ffood-e","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Ffood-e/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Ffood-e/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Ffood-e/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/food-e/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837278,"owners_count":21169374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["additive","code","color","e","efta","europian","food","number","preservative","union"],"created_at":"2024-11-27T19:09:53.319Z","updated_at":"2025-04-14T07:07:08.597Z","avatar_url":"https://github.com/nodef.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[E numbers] are codes for substances that are permitted to be used as [food additives]\nfor use within the [European Union] and [EFTA]. Commonly found on [food labels],\ntheir safety assessment and approval are the responsibility of the\n[European Food Safety Authority].\n\nHaving a single unified list for food additives was first agreed upon in 1962 with\n[food colouring]. In 1964, the directives for preservatives were added, 1970 for\nantioxidants and 1974 for the emulsifiers, stabilisers, thickeners and gelling\nagents.\n\n\n## console\n\n```bash\nfoode \"E101a\"\n# E101a: Riboflavin-5'-Phosphate\n# .type: color (Yellow-orange); .status: e\n\nfoode \"101 a\"\n# E101a: Riboflavin-5'-Phosphate\n# .type: color (Yellow-orange); .status: e\n\nfoode \"riboflavin\"\n# E101a: Riboflavin-5'-Phosphate\n# .type: color (Yellow-orange); .status: e\n#\n# E106: Riboflavin-5-Sodium Phosphate\n# .type: color (Yellow); .status: \n# ...\n```\n\n### reference \n\n```bash\nfoode [options] \u003cquery\u003e\n# query: code, name, type, or status of food additive\n# Options:\n# --help: show this help\n# --silent: hide error messages\n\n# Environment variables:\n$FOODE_SILENT # hide error messages (0)\n```\n\u003cbr\u003e\n\n\n## javascript\n\n```javascript\nconst foode = require('food-e');\n\nfoode('E101a');\n// [ { code: 'E101a',\n//     names: 'Riboflavin-5\\'-Phosphate',\n//     type: 'color (Yellow-orange)',\n//     status: 'e' } ]\n\nfoode('101 a');\n// [ { code: 'E101a',\n//     names: 'Riboflavin-5\\'-Phosphate',\n//     type: 'color (Yellow-orange)',\n//     status: 'e' } ]\n\nfoode('riboflavin');\n// [ { code: 'E101a',\n//     names: 'Riboflavin-5\\'-Phosphate',\n//     type: 'color (Yellow-orange)',\n//     status: 'e' },\n//   { code: 'E106',\n//     names: 'Riboflavin-5-Sodium Phosphate',\n//     type: 'color (Yellow)',\n//     status: '' },\n//   ... ]\n```\n\n### reference\n\n| Method              | Action\n|---------------------|-------\n| [foode]             | Lists matching food additives.\n| [load]              | Preloads food additive data (before use).\n| [sql]               | Gives commands to insert data to SQL database.\n| [csv]               | Gives path of data CSV file.\n| [corpus]            | Keeps food additive data. {field}\n\n\u003cbr\u003e\n\n[![nodef](https://merferry.glitch.me/card/food-e.svg)](https://nodef.github.io)\n\n\u003e Browserified, minified version of this package is [food-e.min].\n\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/food-e)\n\n[foode]: https://github.com/nodef/food-e/wiki\n[load]: https://github.com/nodef/food-e/wiki/load\n[sql]: https://github.com/nodef/food-e/wiki/sql\n[csv]: https://github.com/nodef/food-e/wiki/csv\n[corpus]: https://github.com/nodef/food-e/wiki/corpus\n[E numbers]: https://en.wikipedia.org/wiki/E_number\n[food additives]: https://en.wikipedia.org/wiki/Food_additive\n[European Union]: https://en.wikipedia.org/wiki/European_Union\n[EFTA]: https://en.wikipedia.org/wiki/European_Free_Trade_Association\n[food labels]: https://en.wikipedia.org/wiki/Food_label\n[European Food Safety Authority]: https://en.wikipedia.org/wiki/European_Food_Safety_Authority\n[food colouring]: https://en.wikipedia.org/wiki/Food_colouring\n[food-e.min]: https://www.npmjs.com/package/food-e.min\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Ffood-e","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Ffood-e","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Ffood-e/lists"}