Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
4
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc