Skip to content

robertjlooby/chewie-pics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chewie-pics

You can use npm to install other package managers

You can use npm to install programming languages

Now, you can use npm to install pictures of my dog

Usage

Use npm-assets in your build pipeline to copy the images into your project.

Ex) node_modules/npm-assets/bin/npm-assets assets/images to copy them to assets/images

Then to get a random image:

var chewiePics = require('chewie-pics');

var path = 'assets/images/' + chewiePics.random();
// path will be like 'assets/images/chewie12.jpg'

iTerm2 package

This package is also distributed as a command line script to will display pictures of Chewie in iTerm2.

To install and use:

  1. brew tap robertjlooby/homebrew
  2. brew install chewie-pics
  3. chewie