npm.io
0.0.5 • Published 6 years ago

trashguy

Licence
AGPL
Version
0.0.5
Deps
0
Size
169 kB
Vulns
0
Weekly
0

TrashGuy

Banner The [REDACTED] TrashGuy script, written in NodeJS/Javascript!


Requirements

For development, you will only need Node.js and a node global package installed in your environment.

Node

If the installation was successful, you should be able to run the following command.

$ node --version
v12.8.0

$ npm --version
6.10.2

If you need to update npm, you can make it using npm! Cool right? After running the following command, just open again the command line and be happy.

$ npm install npm -g

Install

$ npm install trashguy

Usage Examples

Command line:

SOONtm

NodeJS module:

from trashguy import TrashGuy

console.log(TrashGuy('A B C'))  # input must be a string
console.log(TrashGuy('📂', '📊', '✉'))  # or an array

Node module as iterator:

const { TrashGuy } = require("trashguy")

for (const pos of new TrashGuy('A B C')) {
    console.log(pos)
}

Setting custom symbols with keyword arguments and printing as a newline-joined string:

trashAnimation = new TrashGuy(userInput,{
                           spriteCan:'\u2A06',
                           spriteLeft:'<(-.- <)',
                           spriteRight:'(> -.-)>',
                           spacer:TrashGuy.Symbols.SPACER_EMOJI,
                           wrapper:TrashGuy.Symbols.WRAPPER_BLOCK_MONO})  # triple backticks

console.log(trashAnimation)  # outputs entire animation with each frame separated by newline

Like what you see?

Star the repository and share with your friends!

Really like what you see?

Feel free to donate so we can get some marshmallows

Keywords