npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

cardib4cli

2.3.1 • Public • Published

quotes and wisdom in your terminal.


### Project Inspiration

james baldwin, rappers, and various devs. originally forked from captainsafia/fortuity.

What

Get a quote or a lyric everytime you start a new terminal session.

baldwin_demo

Why

Why not? I love music & I love computers.

this_is_why

How

The client is written in node and just interacts with the API sending either GET or POST requests. If you add cardib4cli to your ~/.bash_profile with a couple of arguments it will fire up the node app everytime you open a new terminal window and parse the arguments as inputs into the request. The api hangs some times so the client makes sure to end its process after 0.5 seconds in case it doesn't get a response.

Demo

gen_demo

demo

Install

$ npm install -g cardib4cli

Execute on startup

To print out a bar from a wise set of individuals every time you launch a new shell, you will need to configure your shell so that this command runs on startup.

When you configure you have the option to get a completely random quote or to limit the pool from which quotes are chosen or to limit the returned lyrics to just those without offensive language (the sfw option).

The options presented below are essentially command line arguments and you can use any combination of them to specify the catalogue of lyrics you want to pull from. For more information on the api look here

'sfw'
'james_baldwin'
'cardi_b'
'jayz'
'2pac'
'nas'
'inspirational_code'
'kanye_west'
'lauryn_hill'
'2pac'
'kehlani'
'kendricklamar'
'absoul'
'asaprocky'
'lilboosie'
'bigpun'
'liluzivert'
'bigsean'
'lilwayne'
'camron'
'lilyachty'
'cardi'
'logic'
'ludacris'
'chancetherapper'
'lupefiasco'
'common'
'macmiller'
'domkennedy'
'meekmill'
'drake'
'nas'
'earlsweatshirt'
'fatjoe'
'nickiminaj'
'future'
'notorious'
'game'
'outkast'
'goldlink'
'pushat'
'guccimane'
'rickross'
'schoolboyq'
'isaiahrashad'
'ti'
'jadakiss'
'tylerthecreator'
'vicmensa'
'jayz'
'vincestaples'
'jcole'
'wale'
'jid'
'west'
'joeybada'
'yg'
'kanye'
'youngjeezy'

Bash

For a quote or lyric from any of the sources listed above use the following

$ echo 'cardib4cli' >> ~/.bash_profile

For a quote or lyric from any of the source above, but also safe for work and free of any cursing or offensive language

$ echo 'cardib4cli sfw' >> ~/.bash_profile

For lyrics only from kanye west or jay-z

$ echo 'cardib4cli kanye_west jay_z' >> ~/.bash_profile

For only james baldwin quotes

$ echo 'cardib4cli james_baldwin' >> ~/.bash_profile

For only inspirational coding quotes

$ echo 'cardib4cli inspirational_code' >> ~/.bash_profile

For only lauryn_hill quotes

$ echo 'cardib4cli lauryn_hill' >> ~/.bash_profile

etc.... Same applies in scenarios below.

Zsh

$ echo 'cardib4cli' >> ~/.zprofile 

Fish

$ echo 'cardib4cli' >> ~/.config/fish/config.fish

Contributing

Its still pretty early but if you have suggestions, thoughts, feedback, criticism, etc feel free to open a PR or submit an Issue.

Thanks in advance 😊


Donating

If ya feeling generous, hollr @ the kid ❤️

https://www.paypal.me/hijodelsol

BTC: 3EbMygEoo8gqgPHxmqa631ZVSwgWaoCj3m

ETH: 0x2F2604AA943dB4E7257636793F38dD3B1808A9e7

LTC: MQVgzNDgw43YzyUg3XmH3jQ7L8ndVswmN3

install

npm i cardib4cli

Downloadsweekly downloads

4

version

2.3.1

license

(MIT OR Apache-2.0)

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability