Socket
Socket
Sign inDemoInstall

metro

Package Overview
Dependencies
0
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
Maintainers
2
Weekly downloads
2,029,993
decreased by-10.28%

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

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