GithubHelp home page GithubHelp logo

daviz00 / npx-visualize-bundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonnyburger/npx-visualize-bundle

0.0 1.0 0.0 7.17 MB

Analyse your React Native bundle in 1 command

Home Page: https://npmjs.com/package/visualize-bundle

License: MIT License

TypeScript 100.00%

npx-visualize-bundle's Introduction

npx visualize-bundle

npx visualize-bundle allows you to inspect your React Native bundle in just one command and to diagnose big modules.

Just like on the web, you want to make your JavaScript file as small as possible. Whenever your app opens, the phone needs to parse the whole JavaScript bundle before it can run the React Native code. On lower-end phones, a big bundle can be a bottleneck on startup performance.

This package simply downloads the bundle and the sourcemap from the running packager and uses source-map-explorer to visualize it.

Usage

No installation is needed, just type

npx visualize-bundle

into the command line. The npx command is available with npm 5.2 or later.

By default the iOS production bundle is being analyzed. The following options are available:

-a, --android         analyse Android bundle 
-d, --dev             analyse development bundle
-o, --output [dir]    output directory
-p, --port [port]     use custom port
-r, --report [string] Custom name for the report file (without ext)
-k, --keep [string]   Don't delete JS bundle and source map after execution
-j, --json            save output as JSON file instead of HTML
-v, --version         print the version number
-h, --help            print usage information

Development

Contributions are welcome - You can clone the repository and start the tool using npm start.

License

MIT


npx-visualize-bundle's People

Contributors

jonnyburger avatar levibuzolic avatar dependabot[bot] avatar maxhungry avatar mikealmartinez avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.