Socket
Socket
Sign inDemoInstall

metro

Package Overview
Dependencies
201
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    metro

🚇 The JavaScript bundler for React Native.


Version published
Weekly downloads
2.2M
increased by1.63%
Maintainers
2
Install size
24.2 MB
Created
Weekly downloads
 

Package description

What is metro?

Metro is a JavaScript bundler for React Native, designed to be fast and scalable, handling the packaging of JavaScript code for React Native apps. It compiles and bundles your JavaScript code and assets into a single file, optimizing for performance and efficiency. Metro is the default bundler for React Native, but it can also be used for other JavaScript projects.

What are metro's main functionalities?

Code Bundling

Metro bundles your JavaScript code and assets into a single file. This process is initiated by running the React Native start command, which starts the Metro bundler. The bundler then compiles the JavaScript code, optimizes it, and packages it into a single file that can be executed by the React Native app.

npx react-native start

Fast Refresh

Metro supports Fast Refresh, a feature that allows developers to get instant feedback on their changes without losing the application state. Fast Refresh combines the benefits of hot reloading and full reloading, providing a seamless development experience.

n/a

Asset Management

Metro handles the packaging and optimization of assets (such as images and fonts) alongside JavaScript code. It ensures that assets are bundled and loaded efficiently in the React Native app.

n/a

Other packages similar to metro

Readme

Source

Metro

🚇 The JavaScript bundler for React Native.

  • 🚅 Fast: We aim for sub-second reload cycles, fast startup and quick bundling speeds.
  • ⚖️ Scalable: Works with thousands of modules in a single application.
  • ⚛️ Integrated: Supports every React Native project out of the box.

This project was previously part of the react-native repository. In this smaller repository it is easier for the team working on Metro to respond to both issues and pull requests. See react-native#13976 for the initial announcement.

FAQs

Last updated on 28 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc