{"id":27224867,"url":"https://github.com/appidea/react-native-node-polyfill","last_synced_at":"2025-04-10T10:35:11.232Z","repository":{"id":222882654,"uuid":"758549947","full_name":"appidea/react-native-node-polyfill","owner":"appidea","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-16T18:49:40.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T05:12:43.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appidea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2024-02-16T15:04:44.000Z","updated_at":"2024-02-16T18:31:04.000Z","dependencies_parsed_at":"2024-02-16T19:49:37.378Z","dependency_job_id":null,"html_url":"https://github.com/appidea/react-native-node-polyfill","commit_stats":null,"previous_names":["appidea/react-native-node-polyfill"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appidea%2Freact-native-node-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appidea%2Freact-native-node-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appidea%2Freact-native-node-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appidea%2Freact-native-node-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appidea","download_url":"https://codeload.github.com/appidea/react-native-node-polyfill/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199247,"owners_count":21063641,"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":"2025-04-10T10:35:10.704Z","updated_at":"2025-04-10T10:35:11.211Z","avatar_url":"https://github.com/appidea.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## react-native-node-polyfill\n\nThis package is a polyfill of Node.js core modules for React Native (to use with Metro).\n\nImportant: It does not provide the compatibility layer with React Native library-based functions like [node-libs-react-native](https://github.com/parshap/node-libs-react-native), at least in this version.\n\nThe benefit of this package is that it is a simple polyfill for Node.js core modules, so there is zero dependency on any native module. Just pure javascript code to _make it work_.\n\nAll the polyfills were forked from [rollup-plugin-polyfill-node](https://github.com/FredKSchott/rollup-plugin-polyfill-node). Thank You, all contributors, for a great job.\n\n## Installation\n\n```sh\nnpm install @appidea/react-native-node-polyfill\n```\n\n## Usage\n\nModify Your `metro.config.js` file to include the following:\n\n```javascript\nconst {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');\nconst path = require('path');\n// import the polyfill\nconst nodePolyfill = require('@appidea/react-native-node-polyfill');\n\n/**\n * Metro configuration\n * https://facebook.github.io/metro/docs/configuration\n *\n * @type {import('metro-config').MetroConfig}\n */\nconst config = {};\n\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), nodePolyfill, config);\n/*                                                        ^ ADD THIS ^ */\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappidea%2Freact-native-node-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappidea%2Freact-native-node-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappidea%2Freact-native-node-polyfill/lists"}