🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

grocery_list

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grocery_list

bundlerRubygems
Version
0.0.4
Version published
Maintainers
1
Created
Source

Grocery-list

Build Status Coverage Status

Turn your json, csv, md, or strings into grocery lists that you can then search for.

Example usage

require 'grocery_list'

GroceryList.search_all('spam, eggs, bacon')
#=> opens 1 tab/item on iga.net sorted by price ascending

Installation

gem install grocery_list

Formats

Strings

Strings are expected to be split by commas.

  "spam, egg, bacon, maple syrup" #=> valid
  "spam, egg, \nbacon, maple syrup" #=> invalid

JSON

Just pass in an array of strings and you're golden.

  '["spam", "egg", "bacon", "maple syrup"]'

Markdown File

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.

To do

  • Implement more searchers? I have IGA.net working in Montreal; Could be extended?

License

MIT

FAQs

Package last updated on 16 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts