chewie-pics
v1.0.7
Published
Pictures of my dog, Chewie
Downloads
27
Maintainers
Readme
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'