jscrambler 8.10.6 → 8.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +14 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ If you're looking to gain control over third-party tags and achieve PCI DSS comp
|
|
|
15
15
|
- [Required Fields](#required-fields)
|
|
16
16
|
- [Output to a single file](#output-to-a-single-file)
|
|
17
17
|
- [Output multiple files to a directory](#output-multiple-files-to-a-directory)
|
|
18
|
-
- [Using
|
|
18
|
+
- [Using glob patterns](#using-minimatch)
|
|
19
19
|
- [Using configuration file](#using-configuration-file)
|
|
20
20
|
- [Options](#options)
|
|
21
21
|
- [Current working directory (--cwd)](#current-working-directory---cwd)
|
|
@@ -163,11 +163,23 @@ jscrambler -a _YOUR_ACCESS_KEY_ -s _YOUR_SECRET_KEY_ -i _YOUR_APPLICATION_ID_ -o
|
|
|
163
163
|
jscrambler -a _YOUR_ACCESS_KEY_ -s _YOUR_SECRET_KEY_ -i _YOUR_APPLICATION_ID_ -o output/ input1.js input2.js
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
### Using
|
|
166
|
+
### Using glob patterns
|
|
167
|
+
|
|
168
|
+
> Important: You should always enclose your glob patterns in quotes, otherwise the shell will prematurely expand the glob.
|
|
169
|
+
|
|
167
170
|
```bash
|
|
168
171
|
jscrambler -a _YOUR_ACCESS_KEY_ -s _YOUR_SECRET_KEY_ -i _YOUR_APPLICATION_ID_ -o output/ "lib/**/*.js"
|
|
169
172
|
```
|
|
170
173
|
|
|
174
|
+
Some useful examples:
|
|
175
|
+
- `lib/**/*.js`: Matches all `.js` files in `lib` and all its subdirectories.
|
|
176
|
+
- `lib/**/priv_key.js`: Matches all `pri_key.js` files in `lib` and all its subdirectories.
|
|
177
|
+
- `scripts/*.js`: Matches all `.js` files in the `scripts` directory.
|
|
178
|
+
- `src/**/*.{js,html}`: Matches all `.js` and `.html` files in `src` and all its subdirectories.
|
|
179
|
+
- `!(node_modules)/**`: Excludes `node_modules` directory.
|
|
180
|
+
|
|
181
|
+
For additional patterns, [click here](https://github.com/isaacs/node-glob#glob-primer).
|
|
182
|
+
|
|
171
183
|
### Using configuration file
|
|
172
184
|
```bash
|
|
173
185
|
jscrambler -c config.json
|
package/package.json
CHANGED