Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including terminal-quotes with all npm packages installed. Try it out:

var terminalQuotes = require("terminal-quotes")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

terminal-quotes v1.0.5

Fresh custom quotes in your terminal

🌟 Terminal Quotes 🌟

Fresh custom quotes in your terminal


$ npm install -g terminal-quotes


$ terminal-quotes [OPTIONS]
$ node <path/to/terminal-quotes/cli.js> [OPTIONS]


Output a random quote from programming-quotes-json

$ terminal-quotes

🌟 Terminal Quotes 🌟

"Software is like sex: it's better when it's free."

--Linus Torvalds



  --total, -t  Total quotes to print, defaults 1

$ quotes is an alias of $ terminal-quotes

Show some quotes when open your terminal

  • Edit your bashrc file
    $ nano ~/.bashrc
  • At the end of the file add:
    node <path/to/terminal-quotes/cli.js>

Use with custom quotes

Just update in the package.json the config property like this:

"config": {
  "source": "",
  "quoteTextProp": "quote",
  "authorTextProp": "author"

where array.json looks like

    "quote": "Life is awesome!",
    "author": "unknow",
    "source": ""

terminal-quotes will fetch the .json of quotes and for every quotes print quoteTextProp value as the quote itself and authorTextProp value as the author.

Note: terminal-quotes not support redirection, make sure the source URL returns a response 2xx and not a redirect.


MIT © Julio Cesar Martin


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free