Giter Club home page Giter Club logo

got-weed's Introduction

got-weed

Build Status Coverage Status

Find out what products are currently in stock at SQDC.

Install

If you have node v8.12.0 or above, you can install the cli with:

$ npm install --global got-weed

If you prefer, you can download a binary from release pages which bundles node with this project for GNU/Linux, Windows and MacOS.

Usage

$ got-weed <command> [options]

Usage Examples
  $ got-weed products --language=fr
  $ got-weed products --in-stock=yes --language=en
  $ got-weed products --in-stock --language=en
  $ got-weed products --in-stock=no --language=en
  $ got-weed stores
  $ got-weed locations
  $ got-weed products --location=qc # also accepts qu(e|é)bec and sqdc

Commands
  locations       List supported countries and provinces/states
  products        List products
  stores          List local stores

Options
  --details   -d  More detailled output (not implemented yet)
  --force     -f  Bypass cached files if any and force download (not implemented yet)
  --in-stock  -s  In stock only; in-stock=false for the reverse
  --language  -l  Language (fr or en), defaults to $LANG or $LANGUAGE
  --version       Output software version
  --help          This help text

Contributors

License

AGPL-v3 © 2018 Robin Millette and contributors

got-weed's People

Contributors

dependabot[bot] avatar millette avatar samuelwang48 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

got-weed's Issues

Store historical data

Pluggable backend? I like couchdb, leveldb is also an option, or straight json files stored on the filesystem.

Rethink options and flags

Introduce options to:

  • List all products
  • List unavailable products
  • List available products
  • Fetch more product details (various prices, etc.)
  • List and select country/province #4

Caching layer

Ideally, we'd use got's cache adapters except the sqdc disables caching. If we could force got to cache content in that case, it would be perfect.

For now, a thin fs utility will do the trick.

User agent

Provide user agent string, based on package name and version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.