npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@waynechang65/pokeiv

v1.3.0

Published

Pokemon's IVs calculator module

Downloads

1

Readme

npm npm Npm package total downloads Build Status GitHub

pokeiv

pokeiv 是一個可以計算寶可夢個體值(Individual values, IVs)的模組。(目前支援本傳三代以後的寶可夢, 特別是八代劍盾)

pokeiv is a module that can be used to calculate IVs(Individual values) of Pokémons.(After the 3rd Generation supported, especially 8th gen sword and shield)

前言(Overview)

計算寶可夢個體值(Individual values, IVs)幾乎是每個寶可夢玩家會做的事。目前使用Javascript寫寶可夢個體值查詢的開放模組很少,所以寫一個來用。

Calculating individual values(IVs) of Pokémon is almost every Pokémon player will do. Currently there are very few open source modules for calculating Pokémon individual values with Javascript, so write one to use.

這個模組能做什麼事? (What can it do ?)

  • 用全國編號或伽勒爾編號查寶可夢的個體值,查寶可夢的名字。(支援多國語言)
    Calculating individual values(IVs) of Pokémons, querying names of Pokémons by international or Galar number.(support multi-languages)

如何在您的專案使用? (How to use it in your project ?)

  • 利用 npm 套件進行下載
    Use npm to install
npm install --save @waynechang65/pokeiv
  • 在您的專案環境中,引用 @waynechang65/pokeiv 模組。
    Include @waynechang65/pokeiv package in your project
const pokeiv = require('@waynechang65/pokeiv');
  • 接下來,在專案裏的async函式內使用即可。 Add programs in an async function in your project.

  • 回傳個體值(IVs)資料陣列。 The function will return an array of IVs.

如何跑範例程式? (How to run the example ?)

  • 從GitHub下載pokeiv專案程式
    Clone pokeiv from GitHub
git clone https://github.com/WayneChang65/pokeiv.git
  • 在pokeiv專案環境中,下載必要模組。
    Install dependencies in the cloned pokeiv folder
npm install
  • 透過 npm 直接使用以下指令。(實際範例程式在 ./examples/demo.js)
    Run it with npm. (the demo example is in ./examples/demo.js)
npm start

基本函式 (Base Methods)

  • setLanguage: 設定多國語言, set a language to use
  • getIVs: 用全國編號取得寶可夢個體值(IVs), calculate IVs of Pokemon by international number
  • getIVs_galar: 用伽勒爾編號取得寶可夢個體值(IVs), calculate IVs of Pokemon by Galar number
  • getPokeName: 用全國編號取得寶可夢的名字, query a name of Pokemon by international number
  • getPokeName_galar: 用伽勒爾編號取得寶可夢的名字, query a name of Pokemon by Galar number

參考網站 (Reference)

貢獻一己之力 (Contribution)

pokeiv 雖然是一個小模組,但本人還是希望這個專案能夠持續進步!若有發現臭蟲(bug)或問題,請幫忙在Issue留言告知詳細情形。
歡迎共同開發。歡迎Fork / Pull Request,謝謝。:)

Even though pokeiv is a small project, I hope it can be improving. If there is any issue, please comment and welcome to fork and send Pull Request. Thanks. :)