You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2022. It is now read-only.
> _Note:_ Work in progress. More information coming soon.
6
-
7
-
> Obfuscates JavaScript files.
5
+
> Obfuscates JavaScript files using amazing [javascript-obfuscator](https://github.com/javascript-obfuscator/javascript-obfuscator).
8
6
9
7
## Getting Started
10
8
This plugin requires Grunt `~0.4.5`
11
9
12
-
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
10
+
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin and _javascript-obfuscator_with this command:
..._javascript-obfuscator_ is defined as a peer dependency. In other words you can experiment with every version above `0.7.2`.
17
+
18
18
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
19
19
20
20
```js
@@ -41,46 +41,40 @@ grunt.initConfig({
41
41
42
42
### Options
43
43
44
-
#### options.separator
45
-
Type: `String`
46
-
Default value: `', '`
47
-
48
-
A string value that is used to do something with whatever.
49
-
50
-
#### options.punctuation
51
-
Type: `String`
52
-
Default value: `'.'`
53
-
54
-
A string value that is used to do something else with whatever else.
44
+
Options are passed directly to _javascript-obfuscator_. Please visit [documentation of the project](https://github.com/javascript-obfuscator/javascript-obfuscator) for a complete list of options.
55
45
56
46
### Usage Examples
57
47
58
48
#### Default Options
59
-
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
49
+
50
+
In this example, the default options are used to obfuscate scripts:
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
66
+
67
+
In this example, custom options are used to obfuscate scripts. `debugProtection` makes it almost impossible to use the console tab of the Developer Tools:
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
0 commit comments