Skip to content

Commit 24995fa

Browse files
committed
npm
1 parent e7dc789 commit 24995fa

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
display: flex;
4747
gap: 2rem;
4848
}
49+
.none {
50+
display: grid;
51+
}
4952
</style>
5053
</head>
5154
<body>
@@ -66,9 +69,16 @@ <h2> Custom colors: using the host background-color and the ::part(canvas)</h2>
6669

6770
<hr>
6871

72+
<div>
73+
<h2>How to:</h2>
74+
<ul class="none">
75+
<li>Add the script tag <code>&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@dgrammatiko/qr-element/+esm">&lt;/script></code></li>
76+
<li>Add the element tag <code>&lt;qr-element input="some string" width="300px">&lt;/qr-element></code></li>
77+
</ul>
78+
</div>
6979
<ul>
7080
<li><a href="https://github.com/dgrammatiko/qr-element">Github repo</a></li>
71-
<li><a href="https://github.com/dgrammatiko/qr-element">NPM package</a></li>
81+
<li><a href="https://www.npmjs.com/package/@dgrammatiko/qr-element">NPM package</a></li>
7282
<li><a href="https://dgrammatiko.dev">by dGrammatiko</a></li>
7383
</ul>
7484

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"name": "qr-element",
2+
"name": "@dgrammatiko/qr-element",
33
"version": "1.0.0",
44
"description": "Creates a QR image",
55
"main": "src/index.mjs",
6+
"type": "module",
67
"scripts": {
78
"dev": "npx vite",
89
"build": "npx vite build --config ./vite.config.js"
@@ -11,5 +12,18 @@
1112
"headless-qr": "^1.0.3"
1213
},
1314
"license": "MIT",
14-
"author": "Dimitris Grammatikogiannis"
15+
"author": "Dimitris Grammatikogiannis",
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/dgrammatiko/qr-element.git"
19+
},
20+
"keywords": [
21+
"QR-code",
22+
"Web-component",
23+
"vanilla",
24+
"javascript"
25+
],
26+
"publishConfig": {
27+
"access": "public"
28+
}
1529
}

0 commit comments

Comments
 (0)