• Stars
    star
    401
  • Rank 107,625 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ‘พ Pokemon version of cowsay with CLI and API.

pokemonsay

Pokemon version of cowsay with CLI and API.

Inspired by another pokemonsay and parrotsay-api I created this to quell my obsession with Pokemon and command line greetings. This module includes all Pokemon and forms available on Bulbapedia excluding shinies, a total of 846.

CLI

Random

Simply call pokemonsay to get a random Wild POKEMON appeared! message.

Piping to STDIN

Pipe to pokemonsay to get a random Pokemon with the piped message below it.

API

There are a few methods that are available to utilize pokemonsay in your own app/module!

iChooseYou

  • Argument: Object { number, pokemon, form }
  • Result: Array of Objects [{ number, pokemon, form, say }]

Filter through the database using the available info to get matching Pokemon. The resulting objects in an array will contain the following properties:

  • number: National Dex number (integer).
  • pokemon: The name of the Pokemon.
  • form: The first letter of the form.
    • Example: "A" for Alola Form (Marowak A-form) or "A" for Attack Form (Deoxys A-form)
  • say: The ANSI compatible string meant for console.logging.

random

  • Arguments: Integers min, max
  • Result: Object { number, pokemon, form, say }

Get a random pokemonsay object. An optional min and max argument can be used to get Pokemon from a specific generation (including their alternate forms regardless of generation). The resulting object will contain the following properties:

  • number: National Dex number (integer).
  • pokemon: The name of the Pokemon.
  • form: The first letter of the form.
    • Example: "A" for Alola Form (Marowak A-form) or "A" for Attack Form (Deoxys A-form)
  • say: The ANSI compatible string meant for console.logging.

say

default text (Wild POKEMON appeared!)

  • Arguments: Object { pokemon, form, options }
  • Result: String

Returns a string that shows a box with the message Wild POKEMON appeared! with the specified Pokemon and form. The options property is an object that will override the default settings for boxen.

custom text

  • Arguments: Object { text, options }
  • Result: String

Returns a string that shows a box with the message specified. The options property is an object that will override the default settings for boxen.

More Repositories

1

ampreact

โšกโš› AMP HTML, Next.js, React, styled-components, GraphQL, and TypeScript โ€” The most trendy website boilerplate possible.
TypeScript
228
star
2

react-amphtml

โšก๏ธ Use amphtml components inside your React apps easily!
TypeScript
143
star
3

hyper-sync-settings

๐Ÿ”ƒ Sync Hyper.app settings with Github.
TypeScript
123
star
4

bluster

A Rust crate for implementing BLE (Bluetooth Low Energy) peripherals
Rust
110
star
5

hyper-tab-icons

๐Ÿ’… Icons in the header tabs for the current running process in Hyper.app.
JavaScript
92
star
6

sous-vide

๐Ÿฒ Node.js API to control Anova water circulators.
JavaScript
69
star
7

wasm-brotli

๐Ÿ—œ WebAssembly compiled Brotli library
TypeScript
66
star
8

hyper-transparent-bg

๐ŸŒซ An emulated transparent background for HyperTerm!
JavaScript
36
star
9

threejs-water

Three.js implementation of water with real-time caustics.
JavaScript
30
star
10

xpc-connection-rs

XPC connection bindings for Rust
Rust
29
star
11

lastpass-node

๐Ÿ” Lastpass client for Node.js
JavaScript
26
star
12

font-family-merger

Merge font variations together to make a big, happy, font family!
Python
21
star
13

nixos-rpi-sd-image

A convenient way to create custom Raspberry Pi NixOS SD images.
Nix
21
star
14

wasm-zopfli

๐Ÿ—œ WebAssembly compiled Zopfli library
JavaScript
16
star
15

awesome-rust-keyboard-firmware

A list of keyboard firmwares written in Rust and related resources.
13
star
16

hyperterm-lastpass

โšซ๏ธ Lastpass plugin for autofilling passwords in HyperTerm.
JavaScript
13
star
17

bitwise-rotation

๐Ÿ”„ Rotate values with a bitwise rotation.
JavaScript
10
star
18

rollup-webpack-loader

๐Ÿญ Add rollup to your webpack.
JavaScript
9
star
19

node-fonttools

๐Ÿ–‹ Native bindings to `fonttools` to decompile and compile fonts.
C++
8
star
20

keycode

A Rust crate for translating keycodes based on Chrome's mapping of keys.
Rust
8
star
21

grav-plugin-dropbox

A highly alpha, yet working Dropbox plugin for Grav.
PHP
8
star
22

eyeliner

๐Ÿ‘ A CSS inliner for making emails.
Rust
8
star
23

proton-c

Board Support Crate for the Proton C.
Rust
6
star
24

docker-preprocessors

๐Ÿ“ฌEasy way to preprocess resources and assets with Docker.
JavaScript
5
star
25

node-eyeliner

Native bindings for eyeliner, a CSS inliner for making emails.
Rust
4
star
26

pm2-loggly

PM2 Remote Logging to Loggly
JavaScript
4
star
27

bleboard

Simple app to make any keyboard bluetooth enabled
Rust
4
star
28

pixelmatch-rs

Pixel-level image comparison
Rust
4
star
29

zopfli-rs

Bindings to `zopfli` for deflate, gzip, and zlib compression.
Rust
4
star
30

bitrate

Extension traits that add convenience methods for working with bitrates and frequencies.
Rust
4
star
31

jsxn-rs

Put JSX in your JSON and JSON in your JSX!
Rust
4
star
32

docker-intranet

Easy way to get started with a small intranet.
PHP
4
star
33

hyper-custom-plugins

๐Ÿ›  Create Hyper.app plugins from Hyper.app's configuration file.
JavaScript
4
star
34

linter-american

๐Ÿ‡บ๐Ÿ‡ธ Make American spelling great again.
JavaScript
3
star
35

mk20d7-hal

Rust embedded-hal implementation crate for the MK20D7 processor
Rust
3
star
36

tokei-aas

Tokei as a Service
Rust
3
star
37

nur-packages

My personal NUR repository
Nix
2
star
38

karl-the-fog

๐ŸŒซ Creates a "stylized fog" using an HTML5 canvas.
JavaScript
2
star
39

moment.rs

Rust
2
star
40

wasm-module-preprocessors

๐Ÿ’Ž Easy way to preprocess WebAssembly (wasm) modules.
JavaScript
2
star
41

rust-apigpio

C
2
star
42

zerocater-slack

Simple personal foray into slack slash commands using my newly created ZeroCater client.
JavaScript
2
star
43

inro

๐ŸŒธ Probably the easiest way to create a responsive UI.
JavaScript
2
star
44

amphtml-validator-rules

๐Ÿ”Get all the rules that `amphtml-validator` uses.
JavaScript
2
star
45

MagentoOrderCancelEmailNotification

When an order is cancelled a notification of this even will be emailed to magento's support email.
PHP
2
star
46

zerocater-node

๐Ÿฑ Node.js client for ZeroCater.
JavaScript
2
star
47

image-xterm-loader

๐Ÿ–ฅ Load images with Webpack as XTerm 256-color compatible strings.
JavaScript
2
star
48

grav-plugin-redirects2

Grav plugin to redirect on a per page basis.
PHP
1
star
49

git-changelog

Quick Node.js script to output a CSV changelog of git commits
JavaScript
1
star
50

node-jsxn

Put JSX in your JSON and JSON in your JSX!
Rust
1
star
51

rust-lib-bin-crate-example

Shows that a Rust module can be both a `lib` and a `bin`.
Rust
1
star
52

jira-absolute-dates

โŒ› Chrome extension that shows JIRA absolute dates.
JavaScript
1
star
53

babel-plugin-ad-lib

๐Ÿ”ฅ A Babel plugin to make your code lit AF
JavaScript
1
star
54

log-scrollback-ui-template

JavaScript
1
star
55

domshot

Render HTML + CSS to images quickly
Rust
1
star
56

docker-tweets

Container for spinning up an oauth server to retrieve tweets.
1
star
57

crowd-control

โš ๏ธ Control promises in a queue with optional timeouts.
JavaScript
1
star
58

nginx-indicator

๐Ÿšจ Nginx up-indicator, click to start server
JavaScript
1
star
59

node-find-synology

Use find.synology.com's APIs for finding your local Synology NASs
JavaScript
1
star
60

gdo-server

Integrate Security+ 2.0 garage doors w/ MQTT
Python
1
star
61

git-webfont-service

๐Ÿ–‡ Serve fonts from a git repo.
JavaScript
1
star
62

sketch-expander

๐Ÿ†™ Expand Sketch files to make them easy to version control.
JavaScript
1
star
63

mk20d7

Rust device crate generated with svd2rust for MK20D7 processors
Rust
1
star
64

hyper-greeting

๐Ÿ™‹ Add a nice greeting to each new session created in Hyper.
JavaScript
1
star
65

raspberry-pi-server-poc

๐Ÿ”‘ A quick proof of concept that a server (will be a Raspberry Pi) can be used as an upstream server behind a VPN (OpenVPN in this case) from another server (planning on using DigitalOcean).
Shell
1
star
66

linter-rust-cargo

Rust Cargo linter that's fast.
JavaScript
1
star
67

advent-of-code-2022

Zig
1
star
68

npm-reinstall-global-packages

Simple Node.js script to reinstall all npm global packages (convenient for when you change Node.js versions)
JavaScript
1
star
69

npm-dependency-injection

๐Ÿ’‰ A very dumb version of dependency injection for npm.
JavaScript
1
star
70

rocky-watchface-tutorial-part1-webpack-example

๐Ÿ“– Example of how to use Webpack with the Pebble smartwatch.
JavaScript
1
star