{"library":"prn-metro-bundler","title":"Metro Bundler","description":"Metro is the JavaScript bundler for React Native, designed for sub-second reload cycles, fast startup, and quick bundling speeds. It handles thousands of modules in a single application and is integrated with every React Native project out of the box. Version 0.0.1 appears to be a fork (prn-metro-bundler) of the original Facebook metro-bundler, but the npm package seems to be a placeholder or mis-published. The original metro-bundler was previously part of the react-native repository and is now maintained separately. Note: The correct npm package for the official Metro bundler is 'metro' (or 'metro-bundler' as an alias), but the version 0.0.1 shown here is likely a test/published fork from a Chinese company (pinguo-zhangzhi).","language":"javascript","status":"deprecated","last_verified":"Sat Apr 25","install":{"commands":["npm install prn-metro-bundler"],"cli":null},"imports":["import Metro from 'metro'","import { runBuild } from 'metro'","import { createServer } from 'metro'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import Metro from 'metro';\nimport express from 'express';\n\nconst app = express();\nconst port = process.env.PORT || 8081;\n\n// Start Metro bundler server\nMetro.createServer().then(server => {\n  server.listen(port, () => {\n    console.log(`Metro bundler running on port ${port}`);\n  });\n});\n\napp.get('/', (req, res) => {\n  res.send('Hello from Metro bundler');\n});\n\napp.listen(3000, () => {\n  console.log('Express server listening on port 3000');\n});","lang":"typescript","description":"Creates a Metro bundler server alongside an Express app, demonstrating basic use of Metro's server creation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}