w-data-html-minify 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -36,3 +36,30 @@ console.log(hout)
36
36
  // => <html><head></head><body>abc</body></html>
37
37
 
38
38
  ```
39
+
40
+ ### In a browser(UMD module):
41
+ > **Note:** w-data-html-minify does not dependent on any package.
42
+
43
+ [Necessary] Add script for w-data-html-minify.
44
+ ```alias
45
+ <script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.4/dist/w-data-html-minify.umd.js"></script>
46
+ ```
47
+
48
+ > **minify html:** [ex-html-minify.html](https://yuda-lyu.github.io/w-data-html-minify/examples/ex-html-minify.html) [[source code](https://github.com/yuda-lyu/w-data-html-minify/blob/master/docs/examples/ex-html-minify.html)]
49
+
50
+ ```alias
51
+
52
+ let wdhm = window['w-data-html-minify']
53
+ // console.log(wdhm)
54
+
55
+ let hin = `
56
+ <html>
57
+ <head></head>
58
+ <body>abc</body>
59
+ </html>
60
+ `
61
+ let hout = wdhm(hin)
62
+ console.log(hout)
63
+ // => <html><head></head><body>abc</body></html>
64
+
65
+ ```
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-data-html-minify v1.0.3
2
+ * w-data-html-minify v1.0.4
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -121,7 +121,7 @@ export default WDataHtmlMinify
121
121
  <br class="clear">
122
122
 
123
123
  <footer>
124
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 20:45:31 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
124
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 21:09:30 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
125
125
  </footer>
126
126
 
127
127
  <script>prettyPrint();</script>
@@ -11,7 +11,7 @@
11
11
  <script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
12
12
 
13
13
  <script _src="../src/htmlminifier.min.js"></script>
14
- <script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.3/dist/w-data-html-minify.umd.js"></script>
14
+ <script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.4/dist/w-data-html-minify.umd.js"></script>
15
15
 
16
16
  </head>
17
17
 
package/docs/global.html CHANGED
@@ -364,7 +364,7 @@
364
364
  <br class="clear">
365
365
 
366
366
  <footer>
367
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 20:45:31 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
367
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 21:09:30 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
368
368
  </footer>
369
369
 
370
370
  <script>prettyPrint();</script>
@@ -94,7 +94,7 @@ export default htmlminifier
94
94
  <br class="clear">
95
95
 
96
96
  <footer>
97
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 20:45:31 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
97
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 21:09:30 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
98
98
  </footer>
99
99
 
100
100
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 20:45:31 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 31 2023 21:09:30 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-data-html-minify",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/w-data-html-minify.umd.js",
5
5
  "dependencies": {
6
6
  "html-minifier": "^4.0.0",