/search-cli

very simple tool to perform web searches from the terminal written in node

Primary LanguageJavaScriptMIT LicenseMIT

search

very simple tool to perform web searches from the terminal written in node. Inspired by zquestz/s (and other cli apps) in functionality, but with a different implementation.

a small experimenting learning js and node (and just having fun).

currently works on osx and linux, no window support yet.

pre-requsites

  1. node
  2. npm

installation

npm install -g search-cli

alrnatively, you can download this repository and install from source

git clone https://github.com/latrokles/search-cli.git
cd search-cli
npm install

usage

  Usage: search [options] <query>

  Options:

    -h, --help                       output usage information
    -V, --version                    output the version number
    -s, --service <service>          to perform search on (e.g. google, npm)
    -c, --configure                  configure a new service
    -l, --list                       list configured services

services

search-cli services are stored in a json configuration file placed in the user's home directory during installation (at ~/.search-cli.json).

search-cli comes with some services already configured by default, but new services can be configured by:

  1. running search-cli with the --configure flag (this runs in interactive mode).
  2. manually editing the configuration file to add a new service.

examples

search amazon

search -s amazon daniel suarez

search google

search -s google what is the airspeed velocity of an unladen swallow?

or

search what is the airspeed velocity of an unladen swallow?

search youtube

search -s youtube nodebots

license

MIT