Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jscrambler-metro-plugin

Package Overview
Dependencies
Maintainers
7
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscrambler-metro-plugin

A plugin to use metro with Jscrambler

  • 6.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
170
decreased by-56.63%
Maintainers
7
Weekly downloads
 
Created
Source

Jscrambler Metro Plugin

This metro plugin protects your React Native bundle using Jscrambler.

Version Compatibility


The version's compatibility table match your Jscrambler Version with the Jscrambler Metro Plugin. Please make sure you install the right version, otherwise some functionalities might not work properly.

Jscrambler VersionClient and Integrations
<= 7.1<= 5.x.x
>= 7.2>= 6.0.0

Usage

Include the plugin in your metro.config.js and add the following code:

const {resolve} = require('path');
const jscramblerMetroPlugin = require('jscrambler-metro-plugin')(
  /* optional */
  {
    enable: true,
    ignoreFile: resolve(__dirname, '.jscramblerignore'),
    params: [
      {
        name: 'selfDefending',
        options: {
          threshold: 1
        }
      }
    ]
  }
);

module.exports = jscramblerMetroPlugin;

You can pass your Jscrambler configuration using the plugin parameter or using the usual .jscramblerrc file.

If you use a different location for the .jscramblerignore file, you can use the ignoreFile option to tell Jscrambler the path to the file. Otherwise, if a .jscramblerignore file is found in a project root folder, it will be considered. You can find more information and examples in Ignoring Files.

By default, Jscrambler protection is ignored when bundle mode is set for Development. You can override this behavior by setting env variable JSCRAMBLER_METRO_DEV=true

Keywords

FAQs

Package last updated on 11 Feb 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc