Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terminal-quotes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terminal-quotes

Fresh custom quotes in your terminal

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🌟 Terminal Quotes 🌟

Fresh custom quotes in your terminal

Install

$ npm install -g terminal-quotes

Usage

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

Example

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

$
Options
  --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:
    terminal-quotes
    or
    node <path/to/terminal-quotes/cli.js>

Use with custom quotes

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

...
"config": {
  "source": "http://url.com/myAwesomeQuotes/array.json",
  "quoteTextProp": "quote",
  "authorTextProp": "author"
},
...

where array.json looks like

[
  {
    "quote": "Life is awesome!",
    "author": "unknow",
    "source": "https://twitter.com/juliomatcom"
  },
  ...
]

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.

License

MIT © Julio Cesar Martin

Keywords

FAQs

Package last updated on 09 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc