svelte-qrcode-image
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "svelte-qrcode-image", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "@sveltejs/adapter-auto": "next", |
@@ -8,2 +8,19 @@ # Svelte-QRCode-Image | ||
## Installation | ||
Directly from npm: | ||
```bash | ||
npm install svelte-qrcode-image | ||
``` | ||
From GitHub: | ||
```bash | ||
npm install git+https://github.com/1toldyou/svelte-qrcode-image.git | ||
``` | ||
## Usage | ||
Under the `<script>` tag: | ||
```ts | ||
import { QRCodeImage } from "svelte-qrcode-image"; | ||
``` | ||
## TODO | ||
@@ -21,6 +38,6 @@ - [ ] Documentation | ||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
```bash | ||
npm run dev | ||
``` | ||
You can change the port in `vite.config.ts`. | ||
@@ -56,6 +73,3 @@ Since this being setup as SvelteKit project, so you should create your component in `src/lib` directory. | ||
``` | ||
Instead of | ||
```bash | ||
npm run build | ||
``` | ||
Instead of 'npm run build` | ||
Since it's calling in the background | ||
@@ -62,0 +76,0 @@ ```bash |
4949
77