Skip to content

Commit

Permalink
update docs cdn link
Browse files Browse the repository at this point in the history
  • Loading branch information
yeasir01 committed Jan 28, 2024
1 parent 4814830 commit fb1c3d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $ npm i bpac-js

Content Delivery Network - Latest
```link
https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.mjs
https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.js
```
Note: While using the `latest` tag is convenient, it is recommended to exercise caution, especially in production environments. The latest tag always points to the most recent version, which may include breaking changes. To ensure stability, consider specifying a specific version.

Expand All @@ -76,7 +76,7 @@ If you encounter issues or have suggestions, feel free to contribute to the proj

```javascript
// CommonJS Script File
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@2.0.3/dist/index.mjs";
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@2.0.3/dist/index.js";

const printBtn = document.getElementById("print-btn");

Expand Down
8 changes: 4 additions & 4 deletions docs/vanilla-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### Printer Name
```javascript
// script.js file
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.mjs";
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.js";

const getNameBtn = document.getElementById("get-name-btn");

Expand All @@ -35,7 +35,7 @@ getNameBtn.addEventListener("click", getName);
### List of Printer Names
```javascript
// script.js file
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.mjs";
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.js";

const getNameBtn = document.getElementById("get-name-btn");

Expand All @@ -55,7 +55,7 @@ getNameBtn.addEventListener("click", getNames);
### Printing
```javascript
// script.js file
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.mjs";
import BrotherSdk from "https://cdn.jsdelivr.net/npm/bpac-js@latest/dist/index.js";

const printBtn = document.getElementById("print-btn");

Expand All @@ -75,7 +75,7 @@ const data = {
const options = {
copies: 1, // Optional - Defaults to 1
printName: "Air Force Label", // Optional - Defaults to BPAC-Document
quality: "high" // Optional - Defaults to "default"
highResolution: true // Optional
}

const sendToPrinter = async () => {
Expand Down

0 comments on commit fb1c3d4

Please sign in to comment.