jscrambler-loader
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "jscrambler-loader", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "jscrambler module loader for webpack", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/jscrambler/jscrambler-loader", |
@@ -1,11 +0,26 @@ | ||
## jscrambler-loader | ||
# ![jscrambler](media/jscrambler-logo.png) | ||
jscrambler-loader | ||
-------------------- | ||
Add obfuscation to your build process with [webpack](https://webpack.github.io/) and jscrambler-loader. | ||
### How to Use | ||
#### Setup your .jscramblerrc config file | ||
> DISCLAIMER: If you are looking for Jscrambler 3.8 or below please go to [this page](https://github.com/jscrambler/jscrambler-loader/tree/v0). | ||
## How to Use | ||
### Install | ||
Install the Jscrambler webpack loader. | ||
``` | ||
npm install -D jscrambler-loader | ||
``` | ||
Option `-D` will make sure it is installed as a `devDependency`. | ||
### Setup your .jscramblerrc config file | ||
In order to start using jscrambler-loader you will need to setup your configuration file named `.jscramblerrc`. This file will contain all the necessary options for your application protection. | ||
You may put your config file in one of [these directories](https://github.com/dominictarr/rc#standards). | ||
Here's an example of what your `.jscramblerrc` file should look like: | ||
Here's an example of how your `.jscramblerrc` file should look like: | ||
@@ -20,16 +35,30 @@ ```javascript | ||
"applicationId": "XXXXXXXXXXXX", | ||
"params": { | ||
"functionOutlining": {} | ||
} | ||
"params": [ | ||
{ | ||
"name": "whitespaceRemoval" | ||
}, | ||
{ | ||
"name": "charToTernaryOperator" | ||
} | ||
] | ||
} | ||
``` | ||
Replace the `XXXXXX` fields with your account API Tokens and you applicationID. | ||
Keep in mind that the `params` object is optional. | ||
You will need your credentials and Application ID in order to protect your application. | ||
Navigate to your [profile](https://app.jscrambler.com/profile) page and grab your `accessKey` and `secretKey` at the _API Credentials_ section. | ||
#### Webpack Config | ||
Your `applicationId` can be found inside your application page just below your application name. Click the copy to clipboard icon to copy the `applicationId`. | ||
This is a simple example of how to use `jscrambler-loader` with webpack. | ||
![copy](media/copy-id.png) | ||
### Example: | ||
You can also grab your current configuration on your application page. This will download a `.json` file containing a valid configuration with your currently selected options. | ||
![download config file location](media/download-settings.png) | ||
Keep in mind that the `params` object is optional and if it is not provided we will use your previous configuration. | ||
### Webpack Config | ||
This is a simple example on how to add `jscrambler-loader` to your webpack configuration: | ||
```javascript | ||
@@ -54,1 +83,5 @@ // webpack.config.js | ||
``` | ||
This will use your `.jscramblerrc` as your Jscrambler protection configuration. | ||
You can find some working examples [here](https://github.com/jscrambler/jscrambler-loader/tree/master/examples) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71147
16
217
86
2