🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

obfuscator-io-metro-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obfuscator-io-metro-plugin - npm Package Compare versions

Comparing version

to
1.0.3

.github/workflows/npm-publish.yml

0

lib/constants.js

@@ -0,0 +0,0 @@ const BUNDLE_CMD = 'bundle';

@@ -0,0 +0,0 @@ const { emptyDir, mkdirp, readFile, writeFile,remove } = require('fs-extra');

@@ -0,0 +0,0 @@ const glob = require('glob');

@@ -0,0 +0,0 @@ const readline = require('readline');

2

package.json
{
"name": "obfuscator-io-metro-plugin",
"version": "1.0.2",
"version": "1.0.3",
"description": "A metro plugin to use javascript-obfuscator library with react-native ",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

# Obfuscator.io Metro Plugin
[![npm version](https://img.shields.io/npm/v/obfuscator-io-metro-plugin.svg)](https://www.npmjs.com/package/obfuscator-io-metro-plugin)
[![npm](https://img.shields.io/npm/dt/obfuscator-io-metro-plugin)](https://www.npmjs.com/package/obfuscator-io-metro-plugin)
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" />
This metro plugin obfuscate your **React Native** bundle using [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator) <br/>

@@ -7,2 +12,4 @@ It only obfuscates your code not the code of `node_modules`, you can verify the obfuscated bundle by either extracting the `index.android.bundle` from generated apk

#### for iOS if you’re facing any issue check this [comment](https://github.com/whoami-shubham/obfuscator-io-metro-plugin/issues/2#issuecomment-932389379) by [@andresarezo](https://github.com/andresarezo)
## Installation

@@ -24,3 +31,3 @@

compact: false,
sourceMap: true,
sourceMap: false,
controlFlowFlattening: true,

@@ -37,2 +44,3 @@ controlFlowFlatteningThreshold: 1,

logObfuscatedFiles: true /* optional generated files will be located at ./.jso */,
// source Map generated after obfuscation is not useful right now
sourceMapLocation:

@@ -39,0 +47,0 @@ "./index.android.bundle.map" /* optional only works if sourceMap: true in obfuscation option */,