@heiwa4126/hello5 0.0.5-rc.1 → 0.0.6-beta.2

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/dist/cli.js +3 -3
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -66,8 +66,20 @@ ESM.sh:
66
66
 
67
67
  Other CDNs:
68
68
 
69
- - jsDelivr [@heiwa4126/hello5 CDN by jsDelivr - A CDN for npm and GitHub](https://www.jsdelivr.com/package/npm/@heiwa4126/hello5)
70
- - unpkg [UNPKG](https://app.unpkg.com/@heiwa4126/hello5)
69
+ - jsDelivr - [@heiwa4126/hello5 CDN by jsDelivr - A CDN for npm and GitHub](https://www.jsdelivr.com/package/npm/@heiwa4126/hello5)
70
+ - unpkg - <https://app.unpkg.com/@heiwa4126/hello5>
71
+
72
+ #### Browser Classic Script Example (CDN)
73
+
74
+ ```html
75
+ <!DOCTYPE html>
76
+ <div id="app">loading...</div>
77
+
78
+ <script src="https://cdn.jsdelivr.net/npm/@heiwa4126/hello5/dist/hello.global.min.js"></script>
79
+ <script>
80
+ document.getElementById("app").innerText = Heiwa4126Hello5.hello();
81
+ </script>
82
+ ```
71
83
 
72
84
  ### As a CLI tool
73
85
 
@@ -76,11 +88,11 @@ After installation, you can use the CLI command:
76
88
  ```console
77
89
  $ heiwa4126-hello5 -h
78
90
 
79
- Usage: heiwa4126-hello5 [-h|--help] [-V|--version]
91
+ Usage: heiwa4126-hello5 [-h|--help] [-v|--version]
80
92
 
81
93
  Options:
82
94
  -h, --help Show this help message
83
- -V, --version Show version
95
+ -v, --version Show version
84
96
 
85
97
  $ heiwa4126-hello5
86
98
 
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
- #!/usr/bin/env node
2
- import o from"../package.json"with{type:"json"};import{hello as i}from"./hello.js";function n(){console.log(`Usage: heiwa4126-hello5 [-h|--help] [-V|--version]
1
+ #! /usr/bin/env node
2
+ import o from"../package.json"with{type:"json"};import{hello as i}from"./hello.js";function n(){console.log(`Usage: heiwa4126-hello5 [-h|--help] [-v|--version]
3
3
 
4
4
  Options:
5
5
  -h, --help Show this help message
6
- -V, --version Show version`)}function s(){console.log(String(o.version))}function l(){const e=process.argv.slice(2);(e.includes("-h")||e.includes("--help"))&&(n(),process.exit(0)),(e.includes("-V")||e.includes("--version"))&&(s(),process.exit(0)),console.log(i())}l();
6
+ -v, --version Show version`)}function s(){console.log(String(o.version))}function l(){const e=process.argv.slice(2);(e.includes("-h")||e.includes("--help"))&&(n(),process.exit(0)),(e.includes("-v")||e.includes("--version"))&&(s(),process.exit(0)),console.log(i())}l();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heiwa4126/hello5",
3
- "version": "0.0.5-rc.1",
3
+ "version": "0.0.6-beta.2",
4
4
  "description": "TypeScript hello world library with dual ES modules/CommonJS support. Features GitHub Actions trusted publishing to npmjs with Sigstore attestation.",
5
5
  "type": "module",
6
6
  "main": "./dist/hello.cjs",
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "bin": {
18
- "heiwa4126-hello5": "./dist/cli.js"
18
+ "heiwa4126-hello5": "dist/cli.js"
19
19
  },
20
20
  "files": [
21
21
  "dist/**/*.js",