1.0.0 • Published 6 years ago
potatojs v1.0.0
potato.js
A potato library inspired by five.js
Usage:
Require the module
var potato = require('potato');In the browser
<script type="text/javascript" src="./potato.js"></script>A potato
potato(); // "potato"Check for potato
potato.isPotato("potato"); // truePotato emoji
potato.emoji(); // "🥔"Fries emoji
potato.best(); // "🍟"A potato with a delay
potato.slowCook(500); // "potato" after 500 msA picture of a potato
potato.picture(); // you can guess itAsync code
potato.async().then(potato => {
// potato === "potato"
})Different radices
potato.binary(); // 0b011100000110111101110100011000010111010001101111
potato.hex(); // 0x706f7461746fPotato md5 hash
potato.md5(); // "8ee2027983915ec78acc45027d874316"Lisence
MIT
1.0.0
6 years ago