potatojs

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i potatojs

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

52.8 kB

Total Files

3

Last publish

Collaborators

  • karudotouahri