0.1.5 โ€ข Published 1 year ago

ts-animal v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

ts-animal

GitHub npm version install size npm downloads

๐Ÿคนโ€โ™€๏ธ Introduction

ts-animal is a sophisticated Command Line Interface (CLI) package designed to showcase captivating ASCII animation art within the animal category. We invite you to immerse yourself in our TypeScript-powered animal world, where creativity meets technology. Welcome to a realm where animated artistry comes to life in the command line environment. ๐ŸŒ๐Ÿฆ

Installation

If you want to try it out before installing globally, you can (1) start with npx (2) or check out codesandbox

$ npm i -g ts-animal

# or start with npx
$ npx ts-animal dance tiger

โญ๏ธ Getting started: ASCII Animal

$ ts-animal dance tiger

๐Ÿ” Options: ASCII Animal

$ ts-animal dance tiger --repeat=3 --speed=1800 --color=red

โญ๏ธ Getting started: Progress Bar

Below example is showing how to add progress feature with your cli.

const { makeProgress } = require("ts-animal/progress");

const { update, done, show } = makeProgress({ animal: 'tiger', start: 30, displayBar: true });

show();

const something = () =>
  new Promise((resolve) => {
  setTimeout(() => {
    resolve(Math.round(Math.random()));
  }, 1000);
});

(async () => {
  const items = Array.from({ length: 50 });
  for (const _ of items) {
    const res = await something();
    update();

    if (res) {
      done();
      return;
    }
  }
})();

๐Ÿ” Options: Progress

const { makeProgress } = require("ts-animal/progress");

const { update, done, show } = makeProgress({ 
    animal: 'tiger',
    start: 0,
    end: 100,
    displayBar: true 
});

๐Ÿฐ Run locally with repository

$ pnpm i
$ pnpm dance {animal}

# ex
$ pnpm dance tiger
$ pnpm dance rabbit

โœจ How to contribute

  • make animal named folder in src/zoo.
  • make frames as text files in zoo folder. No matter txt files name, but make sure files name and frames are sorted.
  • please check first npx run list, to prevent duplicated name.

๐Ÿ”– Our animals

๐Ÿค– Contributors

๐Ÿซถ Support

ascii-animal generator

We have GPTs that help us draw ASCII art.

ts-animal Devbox

There is CodeSandbox where you can try out packages without global installation. 1. fork the devbox 2. use terminal

๐Ÿ’Œ Stay in touch

E-mail - team.ts.animal@gmail.com

๐Ÿ’Ž License

ts-animal with MIT licensed.

0.1.4

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago