vite-plugin-jso-obfuscator 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,90 @@
1
+ JavaScript Obfuscator — jso-protector
2
+ Proprietary Software Licence
3
+
4
+ Copyright (c) 2026 JavaScript Obfuscator. All rights reserved.
5
+
6
+ This software is licensed, not sold. It is made publicly installable through the
7
+ npm registry as a convenience for licensees and evaluators. Publication on a
8
+ public registry does not place it in the public domain and does not grant any
9
+ open-source licence.
10
+
11
+ 1. GRANT
12
+
13
+ Subject to the terms below, you are granted a non-exclusive, non-transferable,
14
+ revocable licence to:
15
+
16
+ (a) download, install and execute this package; and
17
+
18
+ (b) use it to protect source code that you own or are authorised to modify.
19
+
20
+ 2. RUNTIME COMPONENTS
21
+
22
+ The files under `runtime/` are designed to be incorporated into the output of
23
+ your own build. You may embed those components, in original or transformed
24
+ form, into your own applications and distribute them as an integral part of
25
+ those applications, including to your end users, with no obligation to
26
+ reproduce this licence in that output.
27
+
28
+ This permission covers distribution as part of a working application only. It
29
+ does not permit extracting, republishing, repackaging or offering the runtime
30
+ components on their own, or as part of any product whose purpose is code
31
+ protection, obfuscation, tamper detection or a substantially similar function.
32
+
33
+ 3. RESTRICTIONS
34
+
35
+ Except as expressly permitted in Section 2, and except where the following
36
+ cannot lawfully be restricted in your jurisdiction, you may not:
37
+
38
+ (a) redistribute, sublicense, sell, rent, lease or host this package or any
39
+ part of it as a standalone offering;
40
+
41
+ (b) modify, adapt or create derivative works of this package;
42
+
43
+ (c) reverse engineer, decompile or disassemble it, or attempt to derive the
44
+ methods used by the runtime protection components, other than to the
45
+ extent required for interoperability where that right is granted by
46
+ applicable law;
47
+
48
+ (d) remove, obscure or alter any copyright, licence or attribution notice; or
49
+
50
+ (e) use it to protect code that you neither own nor are authorised to modify.
51
+
52
+ 4. FEATURES REQUIRING A SUBSCRIPTION
53
+
54
+ Some functionality transmits source code to the JavaScript Obfuscator hosted
55
+ API and requires a valid, current subscription. Your use of those features is
56
+ additionally governed by the service terms published at
57
+ https://javascriptobfuscator.com/. Nothing in this licence grants access
58
+ to the hosted service.
59
+
60
+ 5. NO WARRANTY
61
+
62
+ THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
65
+
66
+ No representation is made that obfuscated or protected output cannot be
67
+ analysed, reverse engineered or recovered. Code protection raises the cost of
68
+ analysis; it does not make it impossible. Do not rely on this software as the
69
+ sole control protecting secrets, credentials or safety-critical logic.
70
+
71
+ 6. LIMITATION OF LIABILITY
72
+
73
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR
74
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
75
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OR OTHER
76
+ DEALINGS IN THE SOFTWARE.
77
+
78
+ 7. TERMINATION
79
+
80
+ This licence terminates automatically if you breach any of its terms. On
81
+ termination you must cease all use and destroy all copies. Section 2
82
+ permissions already exercised in respect of applications distributed before
83
+ termination survive, so that your end users are not affected.
84
+
85
+ 8. GOVERNING LAW
86
+
87
+ This licence is governed by the laws of the jurisdiction in which the
88
+ copyright holder is established, without regard to conflict-of-law rules.
89
+
90
+ Questions about licensing: https://javascriptobfuscator.com/
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # vite-plugin-jso-obfuscator
2
+
3
+ Obfuscate and protect your Vite build output with JavaScript Obfuscator. Official Vite plugin for jso-protector: string encryption, control-flow flattening, member renaming.
4
+
5
+ This package is a **thin, officially maintained wrapper** around the Vite
6
+ integration that already ships inside
7
+ [`jso-protector`](https://www.npmjs.com/package/jso-protector). It exists so the
8
+ plugin can be found under the name people search for. The implementation is
9
+ identical to `require("jso-protector/vite")` - installing this package installs
10
+ `jso-protector` as a dependency and re-exports it unchanged.
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npm install --save-dev vite-plugin-jso-obfuscator
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```js
21
+ import { defineConfig } from "vite";
22
+ import jsoObfuscator from "vite-plugin-jso-obfuscator";
23
+
24
+ export default defineConfig({
25
+ plugins: [
26
+ jsoObfuscator({ preset: "balanced" })
27
+ ]
28
+ });
29
+ ```
30
+
31
+ Every option accepted by `jso-protector` is accepted here. See the
32
+ [option reference](https://javascriptobfuscator.com/docs/) and the
33
+ [npm CLI guide](https://javascriptobfuscator.com/docs/npmcli.aspx).
34
+
35
+ ## Coming from `javascript-obfuscator`?
36
+
37
+ `jso-protector` ships a one-command config converter:
38
+
39
+ ```bash
40
+ npx jso-protector migrate --from javascript-obfuscator
41
+ ```
42
+
43
+ See [MIGRATION.md](https://www.npmjs.com/package/jso-protector) for the mapping
44
+ table and what does and does not carry across.
45
+
46
+ ## Licence
47
+
48
+ Proprietary. This software is licensed, not sold - see `LICENSE`. A free tier is
49
+ available; paid plans are published at
50
+ <https://javascriptobfuscator.com/premium-membership.aspx>.
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "jso-protector/vite";
2
+ export { default } from "jso-protector/vite";
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ // Thin re-export of the Vite integration that ships inside jso-protector.
4
+ // Published under a bundler-conventional name so it can be found the way
5
+ // people actually search for it. The implementation lives in jso-protector
6
+ // and is shared with `require("jso-protector/vite")`.
7
+ module.exports = require("jso-protector/vite");
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "vite-plugin-jso-obfuscator",
3
+ "version": "0.1.0",
4
+ "description": "Obfuscate and protect your Vite build output with JavaScript Obfuscator. Official Vite plugin for jso-protector: string encryption, control-flow flattening, member renaming.",
5
+ "keywords": [
6
+ "vite",
7
+ "vite-plugin",
8
+ "obfuscator",
9
+ "vite-obfuscator",
10
+ "javascript-obfuscator",
11
+ "obfuscation",
12
+ "javascript",
13
+ "code-protection",
14
+ "source-code-protection",
15
+ "anti-tamper",
16
+ "minify",
17
+ "protect",
18
+ "jso-protector",
19
+ "bundle"
20
+ ],
21
+ "homepage": "https://javascriptobfuscator.com/docs/npmcli.aspx",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/richtexteditor/jso-protector.git"
25
+ },
26
+ "bugs": {
27
+ "url": "https://github.com/richtexteditor/jso-protector/issues",
28
+ "email": "support@javascriptobfuscator.com"
29
+ },
30
+ "license": "SEE LICENSE IN LICENSE",
31
+ "author": "JavaScript Obfuscator",
32
+ "main": "index.js",
33
+ "types": "index.d.ts",
34
+ "exports": {
35
+ ".": {
36
+ "types": "./index.d.ts",
37
+ "require": "./index.js",
38
+ "default": "./index.js"
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
42
+ "files": [
43
+ "index.js",
44
+ "index.d.ts",
45
+ "README.md",
46
+ "LICENSE"
47
+ ],
48
+ "engines": {
49
+ "node": ">=18"
50
+ },
51
+ "dependencies": {
52
+ "jso-protector": "^0.4.2"
53
+ },
54
+ "peerDependencies": {
55
+ "vite": ">=4"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "vite": {
59
+ "optional": true
60
+ }
61
+ }
62
+ }