# qrcode-module

> qrcodejs 二维码生成

Latest version **0.0.4** (published 2020-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install qrcode-module
pnpm add qrcode-module
yarn add qrcode-module
bun add qrcode-module
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2020-07-30 |
| First published | 2020-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 57.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | theajack |
| Maintainers | theajack |
| Keywords | 生成二维码, qrcodejs, qrcode |

## Links

- npm: https://www.npmjs.com/package/qrcode-module
- Repository: https://github.com/theajack/qrcode
- Issues: https://github.com/theajack/qrcode/issues
- npm.io page: https://npm.io/package/qrcode-module

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2020-07-30
- 0.0.3 — 2020-04-04
- 0.0.2 — 2020-04-04
- 0.0.1 — 2020-04-04

## README

# [qrcode-module](https://github.com/theajack/qrcode)

#### [theajack](https://www.theajack.com/)

对 [qrcodejs](https://www.npmjs.com/package/qrcodejs) 做的封装，加入可导入和ts支持

### npm 使用
```
npm i qrcode-module
```

```js
import QRCode from 'qrcode-module'
new QRCode(document.getElementById("qrcode"), "https://www.google.com");
```

### cdn 使用

```html
<div id="qrcode"></div>
<script src="https://cdn.jsdelivr.net/npm/qrcode-module/qrcode-module.min.js"></script>
<script>
new QRCode(document.getElementById("qrcode"), "https://www.google.com");
</script>
```


以下为 qrcodejs 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
```html
<div id="qrcode"></div>
<script type="text/javascript">
new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie");
</script>
```

or with some options

```js
var qrcode = new QRCode("test", {
	text: "http://jindo.dev.naver.com/collie",
	width: 128,
	height: 128,
	colorDark : "#000000",
	colorLight : "#ffffff",
	correctLevel : QRCode.CorrectLevel.H
});
```

and you can use some methods

```js
qrcode.clear(); // clear the code.
qrcode.makeCode("http://naver.com"); // make another code.
```

## Browser Compatibility
IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.

## License
MIT License

## Contact
twitter @davidshimjs

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