search-cli
v0.2.2
Published
simple command line tool to perform web searches
Downloads
50
Readme
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
- node
- npm
installation
npm install -g search-clialrnatively, you can download this repository and install from source
git clone https://github.com/latrokles/search-cli.git
cd search-cli
npm installusage
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 servicesservices
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:
- running search-cli with the
--configureflag (this runs in interactive mode). - manually editing the configuration file to add a new service.
examples
search amazon
search -s amazon daniel suarezsearch 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