Skip to content

k88hudson/shaq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shaq.js

Install

  1. Install node
  2. Run npm install -g shaq in your terminal

Usage

Run shaq hello in your terminal, or shaq --help to see what's up

Contribute

Get started

  1. First, make sure you have node and git installed.
  2. Configure git with your github credentials: see https://help.github.com/articles/set-up-git
  3. Fork this repository by pressing the Fork button Fork Button.
  4. Clone the repository by running git clone git@github.com:k88hudson/shaq.git in your terminal, replacing k88hudson with your own username.
  5. Also in your terminal, cd into the shaq directory: cd shaq
  6. Install dependencies: npm install
  7. Make the main shaq.js file executable: chmod +x lib/shaq.js
  8. Now you can run lib/shaq.js to test shaq locally.

Add a skill to skillz

Add a function to lib/skillz.js. It might look something like this:

function rap() {
  console.log( shaqsHead + 'I can rap 123' );
}

The text inside console.log should be a string - it will get printed out in the console. You can use the variable shaqsHead to add a cool head at the start of your string.

Next, you should add your command to lib/shaq.js in the list of options:

program
  .option('rap', 'Make shaq rap')

Now, test it out with lib/shaq.js!

About

Just shaq things

Resources

Stars

Watchers

Forks

Packages

No packages published