tv-console 1.0.2 → 1.0.3
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 +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,30 @@ A console replacement for TV apps where browser console is not accessible. This
|
|
|
17
17
|
npm install tv-console
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
### CDN Usage
|
|
21
|
+
|
|
22
|
+
You can also use TV Console directly from CDN:
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<!-- Using unpkg -->
|
|
26
|
+
<script src="https://unpkg.com/tv-console@1.0.2/dist/index.umd.min.js"></script>
|
|
27
|
+
|
|
28
|
+
<!-- Using jsDelivr -->
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/tv-console@1.0.2/dist/index.umd.min.js"></script>
|
|
30
|
+
|
|
31
|
+
<!-- Using CDNJS (once approved) -->
|
|
32
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tv-console/1.0.2/index.umd.min.js"></script>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
When using CDN, the library is available globally as `TVConsole`:
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<script>
|
|
39
|
+
const tvConsole = new TVConsole();
|
|
40
|
+
console.log('Hello from CDN!');
|
|
41
|
+
</script>
|
|
42
|
+
```
|
|
43
|
+
|
|
20
44
|
## Quick Start
|
|
21
45
|
|
|
22
46
|
```typescript
|