Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including parrotify-cli with all npm packages installed. Try it out:

parrotify-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("parrotify-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

parrotify-cli v1.1.4

Parrotify anything from your command line

parrotify-cli

Custom parrots from your command line :tada:

parrotify-cli demo

Installation

npm install -g parrotify-cli

Requires node > 8

To display the parrot in your command line you need iTerm > 3, a parrot.gif will be generated in your current directory anyway.

Usage

Just running

> parrotify

Will start the wizard ✨ which will guide you through the parrot generation process 🦄

You can also give these options:

> parrotify [options]


  Options:

    -V, --version             output the version number
    -w --wizard               Use the wizard (inquirer) to create your custom parrot ⚡️
    -b --base [base]          Base parrot to use
    -o --overlay [overlay]    Image to place on top of the parrot
    -p --position [position]  Position of the overlay (face, hand or hat)
    -d --delay [delay]        How hard does the parrot party?
    -h, --help                output usage information

Positioning

The overlay will autoposition itself based on it's ratio and chosen base (experimental).

> parrotify -o http://vignette3.wikia.nocookie.net/runescape2/images/0/0a/Wizard_hat_\(t\)_detail.png -p hat -b mega

Will generate:

parrotify hat demo

A gif file will be generated in the current path showing the result parrot. By default it will be called parrot.gif

TODO

  • Error handling whenever user data is not entered properly (missing overlay and positions defined)

  • Give an error when node version < 8

  • Prevent replacing existing parrot.gif in the folder.

  • Customise overlay size option.

Contributing

Please see our contributing.md


PARTY OR DIE

Built using Parrot As A Service

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free