1.0.0 • Published 4 years ago

potatojs v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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"); // true

Potato emoji

potato.emoji(); // "🥔"

Fries emoji

potato.best(); // "🍟"

A potato with a delay

potato.slowCook(500); // "potato" after 500 ms

A picture of a potato

potato.picture(); // you can guess it

Async code

potato.async().then(potato => {
  // potato === "potato"
})

Different radices

potato.binary(); // 0b011100000110111101110100011000010111010001101111
potato.hex(); // 0x706f7461746f

Potato md5 hash

potato.md5(); // "8ee2027983915ec78acc45027d874316"

Lisence

MIT

1.0.0

4 years ago