Skip to content

Commit 651be63

Browse files
committed
JavaScript target is pretty much ready!
1 parent de5ed62 commit 651be63

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ and customizable way to create QRCodes into the JVM domain, especially in the ba
3737
* **Server friendly:** This isn't a library for Mobile applications, but it is extensible. This is a library thought by
3838
backend developers for backend developers.
3939
* ![new on v3.0.0](https://img.shields.io/badge/new!-v3.0.0-critical?style=flat) **Android is Supported:** Since this library is now a Kotlin Multiplatform one, Android is now natively supported as well!
40+
* ![new on v3.3.0](https://img.shields.io/badge/new!-v3.3.0-critical?style=flat) **JavaScript is Supported:** Now a Browser-Compatible JavaScript version is also available. Check an example [here](examples/js/qrcode-example.html)!
4041

4142
>\* Well, except maybe the `org.jetbrains.kotlin:kotlin-stdlib-jdk8` one if you use Java...
4243
@@ -88,6 +89,18 @@ implementation 'io.github.g0dkar:qrcode-kotlin-jvm:3.3.0'
8889
implementation 'io.github.g0dkar:qrcode-kotlin-android:3.3.0'
8990
```
9091

92+
**Or if you're using it on your Browser:**
93+
94+
```html
95+
<!-- Step 1: Import the library -->
96+
<script src="qrcode-kotlin.min.js"></script>
97+
98+
<!-- Step 2: Recommended to do this to make it easier to use -->
99+
<script>
100+
const QRCode = window['qrcode-kotlin'].io.github.g0dkar.qrcode.QRCode
101+
</script>
102+
```
103+
91104
## Examples and Usage
92105

93106
Here are a few examples of how to use the library to achieve some nice results. If you are interested in more advanced

0 commit comments

Comments
 (0)