🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

catch-pokemon

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catch-pokemon

Algorithm to catch a pokemon

0.0.1
latest
Source
npm
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

catch-pokemon Build Status

Algorithm to catch a pokemon

Install

$ npm install --save catch-pokemon

Usage

const catchPokemon = require('catch-pokemon')

catchPokemon('Pikachu', 'masterball')
// => All right! Pikachu was caught!

API

catchPokemon(pokemon, pokeball, [options])

returns a promise

pokemon

Type: string
Required

Pokemon's name

pokeball

Type: string
Options: pokeball, masterball, greatball, ultraball and safariball
Required

Pokeball's name

options

Type: object

hp

Type: integer

Pokemon's hp

catchRate

Type: integer

Pokemon's catch rate

asleep

Type: boolean
Default: false

Determine if pokemon is asleep

frozen

Type: boolean
Default: false

Determine if pokemon is frozen

paralyzed

Type: boolean
Default: false

Determine if pokemon is paralyzed

burned

Type: boolean
Default: false

Determine if pokemon is burned

poisoned

Type: boolean
Default: false

Determine if pokemon is poisoned

If hp and catchRate are passed it won't look up for these information on API (faster). Otherwise, it will try to find the Pokemon on the API.

License

MIT © Bu Kinoshita

Keywords

pokemon

FAQs

Package last updated on 30 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts