{"id":18596429,"url":"https://github.com/waynekim92/babel-plugin-local-ip","last_synced_at":"2025-05-16T12:34:10.346Z","repository":{"id":236238293,"uuid":"792189992","full_name":"WayneKim92/babel-plugin-local-ip","owner":"WayneKim92","description":"Do you want to automatically replace local IP? (I implemented this because I did not want to troubleshoot the reactotron host IP.)","archived":false,"fork":false,"pushed_at":"2024-04-26T10:27:16.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T07:41:04.639Z","etag":null,"topics":["babel-plugin","device","physical-device","physical-devices","react-native","reactotron"],"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/WayneKim92.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":"2024-04-26T06:51:54.000Z","updated_at":"2024-11-20T11:33:26.000Z","dependencies_parsed_at":"2024-11-07T01:30:58.312Z","dependency_job_id":"fad2a3f7-1539-472a-83a8-826857cfe2bc","html_url":"https://github.com/WayneKim92/babel-plugin-local-ip","commit_stats":null,"previous_names":["waynekim92/babel-plugin-local-ip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneKim92%2Fbabel-plugin-local-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneKim92%2Fbabel-plugin-local-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneKim92%2Fbabel-plugin-local-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneKim92%2Fbabel-plugin-local-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WayneKim92","download_url":"https://codeload.github.com/WayneKim92/babel-plugin-local-ip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254530639,"owners_count":22086651,"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":["babel-plugin","device","physical-device","physical-devices","react-native","reactotron"],"created_at":"2024-11-07T01:24:20.373Z","updated_at":"2025-05-16T12:34:10.304Z","avatar_url":"https://github.com/WayneKim92.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install\n```shell\nyarn add babel-plugin-local-ip -D\n# or\nnpm install babel-plugin-local-ip -D\n```\n# Config\n```shell\n// In babel.config.js\nplugins: [\"babel-plugin-local-ip\"] # \"LOCAL_IP\" string will be replaced with the local IP of the machine where the metro is running.\n# or\nplugins: [\n  [\n    \"babel-plugin-local-ip\", {\n        \"replaceString\": \"FOO_LOCAL_IP\", # (Option) If you want to change it to a different string value.\n        \"interfaceName\": \"en0\" # (Option) If you can't use the network as en0, Replace \"en0\" with your network type name.\n    }\n  ]\n]\n```\n- If you cannot use en0, please refer to the original [code](https://github.com/WayneKim92/babel-plugin-local-ip/blob/main/plugin/local-ip.js).\n\n# Description\nThis plugin was created to automatically enter the local IP of the machine where **[reactotron](https://github.com/infinitered/reactotron)** is running.\n\n```typescript\nimport { Platform } from 'react-native';\nimport Reactotron from 'reactotron-react-native';\n\nconst os = Platform.OS;\nReactotron.configure({\n    name: `App Name ${os}`,\n    getClientId: async () =\u003e `App Name ${os}`,\n    host: 'LOCAL_IP', // babel-plugin-local-ip will convert it to local IP on the machine your metro is running on.\n})\n```\n\n\n# AS-IS\n```\nconst LocalIP = \"Local_IP\"\n```\n\n# TO-BE\n```\n// if your local ip is \"192.168.0.77\"\nconst LocalIP = \"192.168.0.77\"\n```\n\n# reference\n- https://astexplorer.net/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynekim92%2Fbabel-plugin-local-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynekim92%2Fbabel-plugin-local-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynekim92%2Fbabel-plugin-local-ip/lists"}