{"id":31913836,"url":"https://github.com/piecioshka/pokemon-picker","last_synced_at":"2025-10-13T18:53:22.593Z","repository":{"id":23410408,"uuid":"26772787","full_name":"piecioshka/pokemon-picker","owner":"piecioshka","description":"🎨 Pick your Pokémon to fight!","archived":false,"fork":false,"pushed_at":"2025-07-27T10:35:53.000Z","size":1183,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-03T18:54:29.068Z","etag":null,"topics":["cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piecioshka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"piecioshka","buy_me_a_coffee":"piecioshka","patreon":"piecioshka","custom":["https://www.paypal.me/piecioshka","https://patronite.pl/piecioshka"]}},"created_at":"2014-11-17T19:17:13.000Z","updated_at":"2025-07-27T10:35:57.000Z","dependencies_parsed_at":"2025-07-27T12:12:25.035Z","dependency_job_id":"129c71c4-1e6f-49d5-b558-a89fa2010886","html_url":"https://github.com/piecioshka/pokemon-picker","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":0.12,"last_synced_commit":"062a7a0742e6493ae125a0ef930ea4b29536893a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/piecioshka/pokemon-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piecioshka%2Fpokemon-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piecioshka%2Fpokemon-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piecioshka%2Fpokemon-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piecioshka%2Fpokemon-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piecioshka","download_url":"https://codeload.github.com/piecioshka/pokemon-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piecioshka%2Fpokemon-picker/sbom","scorecard":{"id":733220,"data":{"date":"2025-08-11","repo":{"name":"github.com/piecioshka/pokemon-picker","commit":"eb325dd4fba463a676b6c553d79e1e485034d4b2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/testing.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/piecioshka/pokemon-picker/testing.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/testing.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/piecioshka/pokemon-picker/testing.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T15:01:06.501Z","repository_id":23410408,"created_at":"2025-08-22T15:01:06.501Z","updated_at":"2025-08-22T15:01:06.501Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011464,"owners_count":26084947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli"],"created_at":"2025-10-13T18:53:21.483Z","updated_at":"2025-10-13T18:53:22.589Z","avatar_url":"https://github.com/piecioshka.png","language":"JavaScript","funding_links":["https://github.com/sponsors/piecioshka","https://buymeacoffee.com/piecioshka","https://patreon.com/piecioshka","https://www.paypal.me/piecioshka","https://patronite.pl/piecioshka"],"categories":[],"sub_categories":[],"readme":"# pokemon-picker\n\n[![cli-available](https://badgen.net/static/cli/available/?icon=terminal)](#cli)\n[![node version](https://img.shields.io/node/v/pokemon-picker.svg)](https://www.npmjs.com/package/pokemon-picker)\n[![npm version](https://badge.fury.io/js/pokemon-picker.svg)](https://badge.fury.io/js/pokemon-picker)\n[![downloads count](https://img.shields.io/npm/dt/pokemon-picker.svg)](https://www.npmjs.com/package/pokemon-picker)\n[![size](https://packagephobia.com/badge?p=pokemon-picker)](https://packagephobia.com/result?p=pokemon-picker)\n[![license](https://img.shields.io/npm/l/pokemon-picker.svg)](https://piecioshka.mit-license.org)\n[![github-ci](https://github.com/piecioshka/pokemon-picker/actions/workflows/testing.yml/badge.svg)](https://github.com/piecioshka/pokemon-picker/actions/workflows/testing.yml)\n\n🎨 Pick your Pokémon from Pokédex!\n\n![Demo created by VHS](./images/demo.gif)\n\nI always struggle to come up with names for new projects.\u003cbr /\u003e\nI had a simple idea to create a random Pokémon generator.\u003cbr /\u003e\nSo I made this project to randomly select Pokémon.\n\nI use [bulbapedia.bulbagarden.net][0] to get index, name and types.\u003cbr /\u003e\n\n**Pokémon database size: 756**\n\n![](./images/logo.png)\n\n---\n\n## Usage\n\nInstallation:\n\n```bash\nnpm install pokemon-picker\n```\n\n```javascript\nconst pokemon = require(\"pokemon-picker\");\n```\n\n### `pokemon.all(): Array\u003cPokémon\u003e`\n\nReturns list of Pokémons.\n\n### `pokemon.at(index: number): Pokémon`\n\n### `pokemon.byIndex(index: number): Pokémon`\n\nReturn Pokémon object or `undefined` value.\n\nParameters:\n\n- `index` - number of create from the list.\n\n### `pokemon.byName(name: string): Pokémon`\n\nReturns Pokémon object or `undefined` value.\n\nParameters:\n\n- `name` - Pokémon name.\n\n### `pokemon.byType(type: string): Array\u003cPokémon\u003e`\n\nReturns list of Pokémons with type.\n\nParameters:\n\n- `type` - Pokémon type.\n\n### `pokemon.randomize(): Pokémon`\n\nReturn random \"Pokémon\" from whole list.\n\n### `pokemon.size(): number`\n\nReturn number of Pokémon's, which are available in database.\n\n## CLI\n\nInstallation:\n\n```bash\nnpm install -g pokemon-picker\n```\n\n```bash\npokemon-picker --help\n\n  Usage: pokemon-picker [options]\n\n  Pick your Pokémon from Pokédex!\n\n  Options:\n\n    -h, --help     output usage information\n    -V, --version  output the version number\n    -a             Get whole list of Pokémons\n    -i [index]     Get Pokémon by index\n    -n [name]      Get Pokémon by name\n    -t [type]      Get Pokémons by type\n    -r             Return random Pokémon\n    -s             Return number of database size\n```\n\n## Examples\n\n```javascript\nconst pokemon = require(\"pokemon-picker\");\n\npokemon.all(); // ... returns whole list of Pokémons\n\npokemon.byIndex(0); // =\u003e { \"index\": 1, \"name\": \"Bulbasaur\", \"types\": [\"Grass\", \"Poison\"] }\npokemon.at(76); // =\u003e { \"index\": 76, \"name\": \"Golem\", \"types\": [\"Rock\", \"Ground\"] }\npokemon.byIndex(151); // =\u003e { \"index\": 151, \"name\": \"Mew\", \"types\": [\"Psychic\"] }\n\npokemon.byName(\"Pikachu\"); // =\u003e { name: 'Pikachu', types: [ 'Electric' ], index: 25 }\npokemon.byType(\"Fire\"); // =\u003e ... list of Fire Pokémons\n\npokemon.size(); // 756 (all known creatures)\n\npokemon.randomize(); // =\u003e { \"index\": 135, \"name\": \"Electabuzz\", \"types\": [\"Electric\"] }\npokemon.randomize(); // =\u003e { \"index\": 65, \"name\": \"Alakazam\", \"types\": [\"Psychic\"] }\npokemon.randomize(); // =\u003e { \"index\": 38, \"name\": \"Ninetales\", \"types\": [\"Fire\"] }\n```\n\n## License\n\n[The MIT License](https://piecioshka.mit-license.org) @ 2014\n\n[0]: https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_National_Pok%C3%A9dex_number\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiecioshka%2Fpokemon-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiecioshka%2Fpokemon-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiecioshka%2Fpokemon-picker/lists"}