Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naimmalek/an-qrcode
an-qrcode Angular6+ QRCode generator lightweight library
https://github.com/naimmalek/an-qrcode
angular10 angular11 angular12 angular13 angular9 lightweight-framework ng-qrcode ngqrcode npm npm-package qrcode qrcode-generator
Last synced: 2 months ago
JSON representation
an-qrcode Angular6+ QRCode generator lightweight library
- Host: GitHub
- URL: https://github.com/naimmalek/an-qrcode
- Owner: naimmalek
- Created: 2019-11-05T16:51:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T15:11:10.000Z (10 months ago)
- Last Synced: 2024-11-17T08:29:57.580Z (3 months ago)
- Topics: angular10, angular11, angular12, angular13, angular9, lightweight-framework, ng-qrcode, ngqrcode, npm, npm-package, qrcode, qrcode-generator
- Language: JavaScript
- Homepage: https://naimmalek.github.io/an-qrcode-sample-app/
- Size: 2.03 MB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# an-qrcode
`an-qrcode` is simple angular library to generate QR Codes in Angular 6+ app.
[![npm version](https://badge.fury.io/js/an-qrcode.svg)](https://badge.fury.io/js/an-qrcode)
## Demo App
You can find demo app here
[github.com/naimmalek/an-qrcode-sample-app](https://naimmalek.github.io/an-qrcode-sample-app/).## Installation
```
npm install an-qrcode --save
```## Basic Usage
### Import the module and add it to your imports section in your main AppModule:
```js
// Main Module File: app.module.ts
import { AnQrcodeModule } from 'an-qrcode';@NgModule({
declarations: [
AppComponent
],
imports: [
AnQrcodeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```## Examples: an-qrcode
### Generate a QR Code from a string
here is sample code for generate qrcode
```html
```
## Parameters
| Attribute | Type | Default | Description |
| ------------- |-------------| -----|------------|
| level | Number | 1 | QR ECC level (1, 2, 3, 4) |
| qrvalue | String | '' | Your String |
| size | Number | 200 | (Width/Height value) |## License
MIT License
Copyright (c) 2019 - present [Naim Malek (naimmalek.github.io)](https://naimmalek.github.io/)