Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

qdb-cli

NPM

qdb-cli, the sister project of qdb-api-plus, is a command line interface for the quote database on bash.org

How to use

Everything is detailed in the help text that you can get by running qdb --help or qdb -h or qdb help or even just qdb.

$ npm install -g qdb-cli
$ qdb
Usage: qdb <command> [<args>] [-i | --id] [-n | --hide-score] [-o | --over0] [-b | --byNumber]
Commands:
	random [<count>] - Get count amount of random quotes (default 1)
	top [<count>] - Get count amount of top quotes (default 1)
	latest [<count>] - Get latest quotes
	get <id> - Get a specific quote based on it's id
	search <query> [<count>] - Search for specific quotes (count default is 1)
	help - Show this help text
Options:
	i or id - Show the ID with the quote
	n or hide-score - Hide the score of the quote
	o or over0 - (only applies to random) whether to get quotes with a positive score or not
	b or byNumber - (only applies to search) whether to sort by ID number or by Score
	h or help - show this help text

Cool tricks

Pair it with...

  • cowsay (tip - use -n to preserve whitespace)
  • figlet
  • lolcat (my favorite)
  • all of the above

About

A command line tool for the Quote Database found on bash.org, sister project of qdb-api-plus

Resources

Releases

No releases published

Packages

No packages published