Turn your json, csv, md, or strings into grocery lists that you can then search for.
require 'grocery_list'
GroceryList.search_all('spam, eggs, bacon')
#=> opens 1 tab/item on iga.net sorted by price ascending
gem install grocery_list
Strings are expected to be split by commas.
"spam, egg, bacon, maple syrup" #=> valid
"spam, egg, \nbacon, maple syrup" #=> invalid
Just pass in an array of strings and you're golden.
'["spam", "egg", "bacon", "maple syrup"]'
Every list items identified by a *
is considered an item. Every
line which doesn't respect this isn't.
# Grocery List
* Spam
* Eggs
* Bacon
* Maple syrup
Anything else isn't considered an item.
- Implement more searchers? I have IGA.net working in Montreal; Could be extended?
MIT