# @ourfor/plugin-qrcode

> the qrcode generate for js

Latest version **1.0.6** (published 2020-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ourfor/plugin-qrcode
pnpm add @ourfor/plugin-qrcode
yarn add @ourfor/plugin-qrcode
bun add @ourfor/plugin-qrcode
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2020-01-13 |
| First published | 2020-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 27.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ourfor |
| Maintainers | kenorl |

## Links

- npm: https://www.npmjs.com/package/@ourfor/plugin-qrcode
- Repository: https://github.com/ourfor/plugin-qrcode
- npm.io page: https://npm.io/package/@ourfor/plugin-qrcode

## Recent versions

- 1.0.6 (latest) — 2020-01-13
- 1.0.5 — 2020-01-13
- 1.0.4 — 2020-01-13
- 1.0.3 — 2020-01-13
- 1.0.2 — 2020-01-13
- 1.0.1 — 2020-01-12
- 1.0.0 — 2020-01-12

## README

# QRCode.js
QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM.
QRCode.js has no dependencies.

## Basic Usages
```
<div id="qrcode"></div>
<script type="text/javascript">
new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie");
</script>
```

or with some options

```
<div id="qrcode"></div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
	text: "http://jindo.dev.naver.com/collie",
	width: 128,
	height: 128,
	colorDark : "#000000",
	colorLight : "#ffffff",
	correctLevel : QRCode.CorrectLevel.H
});
</script>
```

and you can use some methods

```
qrcode.clear(); // clear the code.
qrcode.makeCode("http://naver.com"); // make another code.
```

specially, if you only want to get raw svg, you can use 

```
const qrcode = new QRCode(null,{
	width: 100,
	height: 100,
	useSvg: true
});
const svg = qrcode.makeCode("https://blog.ourfor.top);
```

## Browser Compatibility
IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.

## License
MIT License

## Contact
twitter @davidshimjs

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/davidshimjs/qrcodejs/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

---
_Source: https://npm.io/package/@ourfor/plugin-qrcode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
