Cornify
Cornify spreads eternal joy and happiness across the web by adding rainbows and unicorns to any web page.
Install
Cornify is available on both npm and bower as cornified
.
To install via npm:
npm install cornified
To install via bower:
bower install cornified
Usage
With node/browserify:
var cornify = ; // add a random unicorn or rainbow to the pagecornify; // remove all cornify images from the pagecornifyclear;
With bower:
API
add
Appends a random cornify image to the page
cornify.add();
//=> <img class="cornify" src="https://raw.github.com/akenn/cornify/master/images/rainbow/2.gif" />
count
Returns the number of cornify images on the page
cornify.count();
//=> 1
clear
Remove all cornify images from the page
cornify.count();
//=> 117
cornify.clear();
cornify.count();
//=> 0
pizzazz
Party time
cornify.count();
//=> 0
cornify.pizzazz();
cornify.count();
//=> 239
Building
npm install
npm run build
Acknowledgements
Inspired by cornify.com