{"id":18973397,"url":"https://github.com/nodejs-mobile/prebuild-for-nodejs-mobile","last_synced_at":"2025-04-19T16:37:48.430Z","repository":{"id":152312023,"uuid":"613800036","full_name":"nodejs-mobile/prebuild-for-nodejs-mobile","owner":"nodejs-mobile","description":"CLI tool to compile node.js native modules for mobile","archived":false,"fork":false,"pushed_at":"2023-12-14T15:03:51.000Z","size":61,"stargazers_count":18,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T10:12:15.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodejs-mobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2023-03-14T09:48:33.000Z","updated_at":"2025-03-18T02:14:56.000Z","dependencies_parsed_at":"2023-11-09T13:44:28.227Z","dependency_job_id":"bf32cd1f-c609-43ab-9131-016192a3a7aa","html_url":"https://github.com/nodejs-mobile/prebuild-for-nodejs-mobile","commit_stats":null,"previous_names":["nodejs-mobile/prebuild-for-nodejs-mobile"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-mobile%2Fprebuild-for-nodejs-mobile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-mobile%2Fprebuild-for-nodejs-mobile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-mobile%2Fprebuild-for-nodejs-mobile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodejs-mobile%2Fprebuild-for-nodejs-mobile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodejs-mobile","download_url":"https://codeload.github.com/nodejs-mobile/prebuild-for-nodejs-mobile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223935,"owners_count":21232833,"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-11-08T15:12:04.961Z","updated_at":"2025-04-16T09:33:33.560Z","avatar_url":"https://github.com/nodejs-mobile.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prebuild-for-nodejs-mobile\n\n\u003e CLI tool to compile native modules to work on [nodejs-mobile](https://github.com/nodejs-mobile/nodejs-mobile)\n\n## Usage\n\n`cd` into the folder that contains your native addon (folder containing the `package.json`) and then run `prebuild-for-nodejs-mobile`, specifying one of the supported targets:\n\n```sh\n$ npx prebuild-for-nodejs-mobile\nERROR: Must specify a target to prebuild-for-nodejs-mobile, one of these:\n  * ios-arm64-simulator\n  * ios-arm64\n  * ios-x64\n  * android-arm\n  * android-arm64\n  * android-x64\n```\n\nSuch as `ios-arm64`:\n\n```sh\n$ npx prebuild-for-nodejs-mobile ios-arm64\n```\n\nUse `--verbose` to see the whole compilation logs:\n\n```sh\n$ npx prebuild-for-nodejs-mobile ios-arm64 --verbose\n```\n\nFor Android, you can specify the Android SDK version with `--sdkXX`, otherwise by default it will be `24`, the lowest supported.\n\n```sh\n$ npx prebuild-for-nodejs-mobile android-arm64 --sdk28\n```\n\n## Features\n\n- [x] Compiles native modules for iOS\n- [x] Compiles native modules for Android\n- [x] Can customize the Android SDK target API version\n- [x] Compiles Rust (either [Neon](https://neon-bindings.com) or [node-bindgen](https://github.com/infinyon/node-bindgen)) Node.js native modules\n- [ ] Can customize build flags\n\n## Versioning\n\nThis project does *NOT* follow SemVer, instead it aims to reflect the upstream Node.js version is is based on.\n\n`prebuild-for-nodejs-mobile` version `A.B.C` is based on Node.js Mobile version `A.B.*`, while the `C` is incremented whenever there are *any* changes to our codebase, be them fixes, features or otherwise, breaking changes or not. For this reason we recommend you call this CLI using `npx prebuild-for-nodejs-mobile@A.B.C` to ensure you are using the correct version for your Node.js Mobile version.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs-mobile%2Fprebuild-for-nodejs-mobile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodejs-mobile%2Fprebuild-for-nodejs-mobile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodejs-mobile%2Fprebuild-for-nodejs-mobile/lists"}