Skip to content

Main content

Random Food by Nutrient Picker Source Code

Browse the implementation files for Random Food by Nutrient Picker.
tool.ts typescript
import FoodPicker from './FoodPicker.svelte';
export const Tool: TypeTool = {
	name: 'Random Food by Nutrient Picker',
	slug: 'random/food-by-nutrient',
	intro:
		'Choose foods from USDA records, set a nutrient range per 100 g, and pick from the matching candidates.',
	tool: () => '',
	i: [],
	o: [
		{
			label: 'Food selection',
			placeholder: 'Selected foods',
			type: 'object',
			render: 'custom',
			renderas: FoodPicker
		}
	],
	alternative: [
		{ title: 'Nutrition Calculator', url: '/nutrition' },
		{ title: 'Compare Foods', url: '/compare/food' }
	],
	cite: [
		{
			title: 'USDA FoodData Central',
			url: 'https://fdc.nal.usda.gov/'
		}
	]
};
export default Tool;

Description

Browse the implementation files for Random Food by Nutrient Picker.

References

  1. Tool.io on GitHub
  2. Tool.io TypeScript tools library

Similar or alternative tools