@heiwa4126/hello5 0.0.3 → 0.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.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -49,6 +49,26 @@ import { hello } from "@heiwa4126/hello5";
49
49
  console.log(hello()); // "Hello!"
50
50
  ```
51
51
 
52
+ #### Browser ESM Module Example (CDN)
53
+
54
+ ESM.sh:
55
+
56
+ ```html
57
+ <!DOCTYPE html>
58
+ <div id="app">loading...</div>
59
+
60
+ <script type="module">
61
+ import { hello } from "https://esm.sh/@heiwa4126/hello5";
62
+
63
+ document.getElementById("app").innerText = hello();
64
+ </script>
65
+ ```
66
+
67
+ Other CDNs:
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)
71
+
52
72
  ### As a CLI tool
53
73
 
54
74
  After installation, you can use the CLI command:
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@heiwa4126/hello5",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
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",
7
+ "module": "./dist/hello.js",
7
8
  "types": "./dist/hello.d.ts",
8
9
  "exports": {
9
10
  ".": {
@@ -45,13 +46,13 @@
45
46
  "homepage": "https://github.com/heiwa4126/heiwa4126-hello5#readme",
46
47
  "license": "MIT",
47
48
  "devDependencies": {
48
- "@biomejs/biome": "^2.3.7",
49
+ "@biomejs/biome": "^2.3.8",
49
50
  "@heiwa4126/clean-publish-scripts": "^0.0.1",
50
51
  "@types/node": "^24.10.1",
51
52
  "tsup": "^8.5.1",
52
- "tsx": "^4.20.6",
53
+ "tsx": "^4.21.0",
53
54
  "typescript": "^5.9.3",
54
- "vitest": "^4.0.14"
55
+ "vitest": "^4.0.15"
55
56
  },
56
57
  "engines": {
57
58
  "node": ">=18.0.0"