dynamsoft-barcode-reader-bundle 11.2.2000-beta-202510282254 → 11.2.2000-beta-202510290153
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.html +16 -11
- package/README.md +14 -12
- package/dist/dbr.bundle.esm.js +2 -2
- package/dist/dbr.bundle.js +2 -2
- package/dist/dbr.bundle.mjs +2 -2
- package/dist/dbr.bundle.worker.js +2 -2
- package/package.json +1 -1
- package/samples.url +1 -1
package/README.html
CHANGED
|
@@ -220,6 +220,16 @@
|
|
|
220
220
|
<body>
|
|
221
221
|
<div id='content'>
|
|
222
222
|
<h1 id="build-a-web-based-barcode-scanner-using-just-a-few-lines-of-javascript">Build a Web-Based Barcode Scanner Using Just a Few Lines of JavaScript</h1>
|
|
223
|
+
<!-- Don't forget to add the TOC & update license section, which is useful for npm README.-->
|
|
224
|
+
<ul>
|
|
225
|
+
<li><a href="#build-a-web-based-barcode-scanner-using-just-a-few-lines-of-javascript">Build a Web-Based Barcode Scanner Using Just a Few Lines of JavaScript</a></li>
|
|
226
|
+
<li><a href="#license">License</a></li>
|
|
227
|
+
<li><a href="#quick-start-hello-world-example">Quick Start: Hello World Example</a><ul>
|
|
228
|
+
<li><a href="#step-1-setting-up-the-html-and-including-the-barcode-scanner">Step 1: Setting up the HTML and Including the Barcode Scanner</a></li>
|
|
229
|
+
<li><a href="#step-2-initializing-the-barcode-scanner">Step 2: Initializing the Barcode Scanner</a></li>
|
|
230
|
+
<li><a href="#step-3-launching-the-barcode-scanner">Step 3: Launching the Barcode Scanner</a></li></ul></li>
|
|
231
|
+
<li><a href="#next-steps">Next Steps</a></li>
|
|
232
|
+
</ul>
|
|
223
233
|
<p>This user guide provides a step-by-step walkthrough of a "Hello World" web application using the <code>BarcodeScanner</code> JavaScript Edition.</p>
|
|
224
234
|
<p>The <code>BarcodeScanner</code> class offers the following features:</p>
|
|
225
235
|
<ul>
|
|
@@ -249,17 +259,10 @@ Thanks to its simplified APIs and built-in UI for video streaming, you can imple
|
|
|
249
259
|
Please refer to <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/faq/system-requirement.html">system requirements</a> for more details.</p>
|
|
250
260
|
</blockquote>
|
|
251
261
|
<h2 id="license">License</h2>
|
|
252
|
-
<p>When getting started with Barcode Scanner, we recommend getting your own 30-day trial license
|
|
253
|
-
<!--
|
|
254
|
-
|
|
255
|
-
When getting started with Barcode Scanner, we recommend [getting your own 30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=npm&package=js) -->
|
|
256
|
-
<p>{% include trialLicense.html %}</p>
|
|
257
|
-
<!-- > [!IMPORTANT]
|
|
258
|
-
> The trial license can be renewed via the [customer portal](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=npm&package=js) twice, each time for another 15 days, giving you a total of 60 days to develop your own application using the solution. Please contact the [Dynamsoft Support Team](https://www.dynamsoft.com/company/contact/) if you need more time for a full evaluation.
|
|
262
|
+
<p>When getting started with Barcode Scanner, we recommend <a href="https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=npm&package=js">getting your own 30-day trial license</a></p>
|
|
263
|
+
<!-- When getting started with Barcode Scanner, we recommend getting your own 30-day trial license.
|
|
259
264
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
If you are fully satisfied with the solution and would like to move forward with a full license, please contact the [Dynamsoft Sales Team](https://www.dynamsoft.com/company/contact/). -->
|
|
265
|
+
{% include trialLicense.html %} -->
|
|
263
266
|
<h2 id="quick-start-hello-world-example">Quick Start: Hello World Example</h2>
|
|
264
267
|
<pre><code class="hljs html language-html"><span class="hljs-meta"><!DOCTYPE <span class="hljs-meta-keyword">html</span>></span>
|
|
265
268
|
<span class="hljs-tag"><<span class="hljs-name">html</span> <span class="hljs-attr">lang</span>=<span class="hljs-string">"en"</span>></span>
|
|
@@ -382,8 +385,10 @@ If you are fully satisfied with the solution and would like to move forward with
|
|
|
382
385
|
<blockquote>
|
|
383
386
|
<p>[!NOTE]<br />
|
|
384
387
|
In the Hello World sample, after a successful decoding process, the scanner closes and the user is met with an empty page. In order to open the scanner again, the user must refresh the page. You may choose to implement a more user-friendly behavior in a production environment, such as presenting the user with an option to re-open the Barcode Scanner upon closing it.</p>
|
|
388
|
+
<p>[!TIP]<br />
|
|
389
|
+
When running performance benchmarks, make sure to disable the console, avoid using <code>console.log()</code>, and run in non-debug mode whenever possible. This ensures that your benchmark results reflect true performance without interference from logging or debugging overhead.</p>
|
|
390
|
+
<h2 id="next-steps">Next Steps</h2>
|
|
385
391
|
</blockquote>
|
|
386
|
-
<h2 id="next-steps">Next Steps</h2>
|
|
387
392
|
<p>Now that you've implemented the basic functionality, here are some recommended next steps to further explore the capabilities of the Barcode Scanner:</p>
|
|
388
393
|
<ol>
|
|
389
394
|
<li>Learn how to <a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner-customization.html">Customize the Barcode Scanner</a></li>
|
package/README.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Build a Web-Based Barcode Scanner Using Just a Few Lines of JavaScript
|
|
2
2
|
|
|
3
|
+
<!-- Don't forget to add the TOC & update license section, which is useful for npm README.-->
|
|
4
|
+
- [Build a Web-Based Barcode Scanner Using Just a Few Lines of JavaScript](#build-a-web-based-barcode-scanner-using-just-a-few-lines-of-javascript)
|
|
5
|
+
- [License](#license)
|
|
6
|
+
- [Quick Start: Hello World Example](#quick-start-hello-world-example)
|
|
7
|
+
- [Step 1: Setting up the HTML and Including the Barcode Scanner](#step-1-setting-up-the-html-and-including-the-barcode-scanner)
|
|
8
|
+
- [Step 2: Initializing the Barcode Scanner](#step-2-initializing-the-barcode-scanner)
|
|
9
|
+
- [Step 3: Launching the Barcode Scanner](#step-3-launching-the-barcode-scanner)
|
|
10
|
+
- [Next Steps](#next-steps)
|
|
11
|
+
|
|
3
12
|
This user guide provides a step-by-step walkthrough of a "Hello World" web application using the `BarcodeScanner` JavaScript Edition.
|
|
4
13
|
|
|
5
14
|
The `BarcodeScanner` class offers the following features:
|
|
@@ -35,20 +44,11 @@ new Dynamsoft.BarcodeScanner().launch().then(result=>alert(result.barcodeResults
|
|
|
35
44
|
|
|
36
45
|
## License
|
|
37
46
|
|
|
38
|
-
When getting started with Barcode Scanner, we recommend getting your own 30-day trial license.
|
|
39
|
-
|
|
40
|
-
<!-- ### Trial License
|
|
41
|
-
|
|
42
|
-
When getting started with Barcode Scanner, we recommend [getting your own 30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=npm&package=js) -->
|
|
47
|
+
When getting started with Barcode Scanner, we recommend [getting your own 30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=npm&package=js)
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
<!-- When getting started with Barcode Scanner, we recommend getting your own 30-day trial license.
|
|
45
50
|
|
|
46
|
-
|
|
47
|
-
> The trial license can be renewed via the [customer portal](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=npm&package=js) twice, each time for another 15 days, giving you a total of 60 days to develop your own application using the solution. Please contact the [Dynamsoft Support Team](https://www.dynamsoft.com/company/contact/) if you need more time for a full evaluation.
|
|
48
|
-
|
|
49
|
-
### Full License
|
|
50
|
-
|
|
51
|
-
If you are fully satisfied with the solution and would like to move forward with a full license, please contact the [Dynamsoft Sales Team](https://www.dynamsoft.com/company/contact/). -->
|
|
51
|
+
{% include trialLicense.html %} -->
|
|
52
52
|
|
|
53
53
|
## Quick Start: Hello World Example
|
|
54
54
|
|
|
@@ -211,6 +211,8 @@ Now that the Barcode Scanner has been initialized and configured, it is ready to
|
|
|
211
211
|
> [!NOTE]
|
|
212
212
|
> In the Hello World sample, after a successful decoding process, the scanner closes and the user is met with an empty page. In order to open the scanner again, the user must refresh the page. You may choose to implement a more user-friendly behavior in a production environment, such as presenting the user with an option to re-open the Barcode Scanner upon closing it.
|
|
213
213
|
|
|
214
|
+
> [!TIP]
|
|
215
|
+
> When running performance benchmarks, make sure to disable the console, avoid using `console.log()`, and run in non-debug mode whenever possible. This ensures that your benchmark results reflect true performance without interference from logging or debugging overhead.
|
|
214
216
|
## Next Steps
|
|
215
217
|
|
|
216
218
|
Now that you've implemented the basic functionality, here are some recommended next steps to further explore the capabilities of the Barcode Scanner:
|