1.1.0 • Published 8 years ago
cornified v1.1.0
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 cornifiedTo install via bower:
bower install cornifiedUsage
With node/browserify:
var cornify = require('cornified');
// add a random unicorn or rainbow to the page
cornify.add();
// remove all cornify images from the page
cornify.clear();With bower:
<!DOCTYPE html>
<html lang="en">
<head>
<script src="bower_components/cornified/build.js"></script>
</head>
<body>
</body>
<script>
cornify.add();
cornify.pizzazz();
</script>
</html>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();
//=> 1clear
Remove all cornify images from the page
cornify.count();
//=> 117
cornify.clear();
cornify.count();
//=> 0pizzazz
Party time
cornify.count();
//=> 0
cornify.pizzazz();
cornify.count();
//=> 239Building
npm install
npm run buildAcknowledgements
Inspired by cornify.com