
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
metro-hermes-compiler
Advanced tools
This experimental module provides a high-level API to work with the Hermes bytecode compiler (HBC). HBC is integrated as a WASM binary generated by the emscripten toolchain and checked in as part of this package.
A pre-configured emscripten environment can be used through this Docker image. Docker can be installed via its desktop app. Make sure to increase resource limits (16G RAM, as much CPU as possible).
cd path/to/hermes/checkout
docker run -i -t --rm -v `pwd`:`pwd` trzeci/emscripten bash
apt-get update -y && apt-get install -y icu-devtools
cd path/to/hermes/checkout
cmake . -DCMAKE_TOOLCHAIN_FILE=/emsdk_portable/emscripten/sdk/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release
make -j emhermesc
After the build process finishes the Hermes Bytecode Compiler JavaScript file will be available in the bin folder.
Babel is a widely-used JavaScript compiler that allows you to use next-generation JavaScript, today. It can transform JavaScript code into a backwards-compatible version, making it suitable for older environments. Unlike metro-hermes-compiler, Babel does not compile to bytecode but to JavaScript that can run in any JavaScript engine.
UglifyJS is a JavaScript parser, minifier, compressor, and beautifier toolkit. It is used to minify JavaScript code to reduce its size and improve load times. While it does not compile to bytecode like metro-hermes-compiler, it is often used in the build process to optimize JavaScript code.
Terser is a JavaScript parser and mangler/compressor toolkit for ES6+. It is a fork of UglifyJS and is used to minify JavaScript code. Similar to UglifyJS, it does not compile to bytecode but is used to optimize JavaScript code for better performance.
FAQs
🚇 Hermes bytecode compiler for Metro.
The npm package metro-hermes-compiler receives a total of 143,616 weekly downloads. As such, metro-hermes-compiler popularity was classified as popular.
We found that metro-hermes-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.