san-francisco-food-cli
v1.0.1
Published
A CLI to get information about the best food in San Francisco
Readme
SanFransFood
A simple CLI tool to search for food trucks in San Francisco using the SFGov Food Truck API. Find the best street food around the city in seconds!
Features
- Search for food trucks near you.
Future features
- Filter food trucks by name, type, or address.
- CLI completions to improve filters insertions
- Use inquirer to a more interactive experience.
Installation
You can use this CLI tool directly with npx, or you can install it globally on your machine.
Option 1: Run with npx (No installation required)
Simply run the following command to use the CLI without installing it globally:
npx sanfransfoodOption 2: Install Globally
To install the CLI globally and use it anywhere:
npm install -g sanfransfoodOnce installed, you can use the CLI by running:
sanfransfoodUsage
After running the CLI, you'll receive in a table visualization of the first 999 entries.
Future Implementation
Search by Food Truck Name
sanfransfood --name "Tacos El Primo"sanfransfood --n "Tacos El Primo"Search by Type of Food
sanfransfood --type "Mexican"sanfransfood --t "Mexican"Search by Location
sanfransfood --address "Mission District"sanfransfood --a "Mission District"If no arguments are provided, the CLI will return a list of all available food trucks.
Options
--name: Filter food trucks by name.--type: Filter food trucks by type of food.--address: Filter food trucks by location.--help: Display help information.
Data Source
This CLI uses the SFGov Food Truck API to fetch real-time data about food trucks in San Francisco.
