{"id":17231017,"url":"https://github.com/sn0opy/namefetcher.js","last_synced_at":"2026-07-08T13:30:19.661Z","repository":{"id":44960144,"uuid":"230549393","full_name":"sn0opy/namefetcher.js","owner":"sn0opy","description":null,"archived":true,"fork":false,"pushed_at":"2023-11-10T16:03:54.000Z","size":44,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T13:44:24.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/sn0opy.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}},"created_at":"2019-12-28T02:51:53.000Z","updated_at":"2024-02-28T15:51:22.000Z","dependencies_parsed_at":"2024-10-15T04:54:22.967Z","dependency_job_id":"0caf17d6-7a31-4ae8-87a3-9ba4f317da5d","html_url":"https://github.com/sn0opy/namefetcher.js","commit_stats":null,"previous_names":["sn0opy/namefetcher.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn0opy%2Fnamefetcher.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn0opy%2Fnamefetcher.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn0opy%2Fnamefetcher.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn0opy%2Fnamefetcher.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sn0opy","download_url":"https://codeload.github.com/sn0opy/namefetcher.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240477605,"owners_count":19807708,"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","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":[],"created_at":"2024-10-15T04:54:24.049Z","updated_at":"2026-07-08T13:30:19.621Z","avatar_url":"https://github.com/sn0opy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# namefetcher\n\nFinds unknown fort names in any RM database and attempts to\nfind and update the name and images of them.\n\n## Installation\n\nIf you just downloaded the single file, you have to install the\nrequirements via: `npm install axios mysql2`\n\nIf you cloned the whole repository, simply run: `npm install`\n\n## Usage\n  * configure the script via either of theses options:\n    - option a) modify first few lines of `name_fetcher.js` to match your confguration\n    - option b) set the following environment variables to match your setup:\n      - NF_TOKEN\n      - NF_URL\n      - NF_DB_HOST     (default: 127.0.0.1)\n      - NF_DB_SOCKETPATH \n      - NF_DB_USER\n      - NF_DB_PASSWORD\n      - NF_DB_DATABASE\n      - NF_DB_PORT     (default: 3306)\n      - NF_INTERVAL    (re-run every n hours, Docker only)\n  * run: `node name_fetcher.js`\n\nBy default, this script will run perfectly well with any RM database. If\nyou like to use it with a different DB format, you can specify a custom JSON\nformatted config file with adjusted column names via `NF_DB_COLS_CONF`. The\nformat should look like so:\n\n```json\n{\n  \"gym\": { \"table\": \"gymdetails\", \"imageCol\": \"url\", \"id\": \"gym_id\", \"type\": \"gyms\" },\n  \"stop\": { \"table\": \"pokestop\", \"imageCol\": \"image\", \"id\": \"pokestop_id\", \"type\": \"stops\" }\n}\n```\n\n## Changelog\n  * 2021-09-21:\n    - use regex instead of length check to search for IDs\n  * 2021-01-20:\n    - initial public Github release\n    - proper error handling\n  * 2021-01-21:\n    - add ability to set environment variables instead of modifying the script\n    - add ability to specify a different column format / names via `NF_DB_COLS_CONF`\n  * 2021-02-20:\n    - add Dockerfile\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn0opy%2Fnamefetcher.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsn0opy%2Fnamefetcher.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn0opy%2Fnamefetcher.js/lists"}