x3d-tidy 2.0.26 → 2.0.28

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.
Files changed (3) hide show
  1. package/README.md +16 -4
  2. package/package.json +3 -3
  3. package/src/main.js +3 -3
package/README.md CHANGED
@@ -12,6 +12,19 @@ You can run *x3d-tidy* without installing it using **npx**:
12
12
 
13
13
  **npx x3d-tidy** \[options\] -i input-file -o output-file [-i input-file -o output-file ...]
14
14
 
15
+ ## Overview
16
+
17
+ *x3d-tidy* is a command-line tool designed for processing X3D (Extensible 3D) files. It provides both conversion and data mining capabilities to enhance and streamline working with X3D content.
18
+
19
+ * Run *x3d-tidy* with `npx x3d-tidy ...` directly from npm without installing it.
20
+ * Format Conversion: Transforms X3D files between different encodings, such as XML, Classic VRML, and JSON.
21
+ * Syntax Cleanup: Ensures well-formed and standardized X3D output by fixing structural inconsistencies and formatting issues.
22
+ * Data Extraction: Mines relevant data from X3D scenes, allowing analysis and reuse of geometries, metadata, and structure.
23
+ * Validation & Optimization: Helps identify errors, redundant elements, and inefficiencies in X3D models.
24
+ * Command-line Usability: Easily integrates into automation workflows and scripts for batch processing.
25
+
26
+ This tool is particularly useful for developers, 3D artists, and researchers working with X3D-based applications, ensuring clean, efficient, and interoperable files.
27
+
15
28
  ## Options
16
29
 
17
30
  **x3d-tidy** interprets the following options when it is invoked:
@@ -26,7 +39,7 @@ Set output file(s). To output it to stdout use only the extension, e.g. ".x3dv".
26
39
 
27
40
  ### -s *[**TIDY**, COMPACT, SMALL, CLEAN]*
28
41
 
29
- Set output style, default is "TIDY". "TIDY" results in a good readable file, but with larger size, whereas "CLEAN" result in the smallest size possible. The other values are somewhere in between.
42
+ Set output style, default is "TIDY". "TIDY" results in a good readable file, but with larger size, whereas "CLEAN" result in the smallest size possible by removing all redundant whitespaces. The other values are somewhere in between.
30
43
 
31
44
  ### -d *integer*
32
45
 
@@ -83,10 +96,9 @@ Convert an XML encoded file to a VRML encoded file.
83
96
  $ npx x3d-tidy -i file.x3d -o file.x3dv
84
97
  ```
85
98
 
86
- Convert an XML encoded file to a VRML encoded file and a JSON encoded file.
87
-
99
+ Convert an XML encoded file to a VRML encoded file and a JSON encoded file with smallest size possible by removing redundant whitespaces.
88
100
  ```sh
89
- $ npx x3d-tidy -i file.x3d -o file.x3dv file.x3dj
101
+ $ npx x3d-tidy -s CLEAN -i file.x3d -o file.x3dv file.x3dj
90
102
  ```
91
103
 
92
104
  ## Online Converter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x3d-tidy",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "description": "X3D Converter, Beautifier and Minimizer",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -53,8 +53,8 @@
53
53
  }
54
54
  ],
55
55
  "dependencies": {
56
- "x_ite": "^11.3.2",
57
- "x_ite-node": "^1.0.35",
56
+ "x_ite": "^11.4.1",
57
+ "x_ite-node": "^1.0.37",
58
58
  "x3d-traverse": "^1.0.10",
59
59
  "yargs": "^17.7.2"
60
60
  },
package/src/main.js CHANGED
@@ -66,7 +66,7 @@ async function convert ()
66
66
  {
67
67
  type: "string",
68
68
  alias: "s",
69
- description: `Set output style, default is "TIDY". "TIDY" results in a good readable file, but with larger size, whereas "CLEAN" result in the smallest size possible. The other values are somewhere in between.`,
69
+ description: `Set output style, default is "TIDY". "TIDY" results in a good readable file, but with larger size, whereas "CLEAN" result in the smallest size possible by removing all redundant whitespaces. The other values are somewhere in between.`,
70
70
  choices: ["TIDY", "COMPACT", "SMALL", "CLEAN"],
71
71
  array: true,
72
72
  default: ["TIDY"],
@@ -109,8 +109,8 @@ async function convert ()
109
109
  "Convert an XML encoded file to a VRML encoded file."
110
110
  ],
111
111
  [
112
- "npx x3d-tidy -i file.x3d -o file.x3dv file.x3dj",
113
- "Convert an XML encoded file to a VRML encoded file and a JSON encoded file."
112
+ "npx x3d-tidy -s CLEAN -i file.x3d -o file.x3dv file.x3dj",
113
+ "Convert an XML encoded file to a VRML encoded file and a JSON encoded file with smallest size possible by removing redundant whitespaces"
114
114
  ],
115
115
  ])
116
116
  .help ()