obfuscator-io-metro-plugin
Advanced tools
Comparing version
@@ -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'); |
{ | ||
"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 | ||
[](https://www.npmjs.com/package/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 */, |
14269
3.74%7
16.67%62
14.81%