qrencode
Version, currently 0.2.15 versions
- 0.2.3latestApr 11, 2021
- 0.2.2not indexedJul 16, 2023
- 0.2.1not indexedJul 16, 2023
- 0.2.0not indexedJul 16, 2023
- 0.1.0not indexedJul 16, 2023
github.com/woodruffw/qrencode.cr
Crystal bindings for libqrencode (qrencode), a library for QR code generation
29 stars
0 dependents
License: MIT with restrictions
Nothing has been indexed for 0.2.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
qrencode:
github: woodruffw/qrencode.cr
version: ~> 0.2.1Then run:
shards installshard.yml
No shard.yml has been indexed for 0.2.1. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
qrencode.cr
===========

[](https://github.com/woodruffw/qrencode.cr/actions?query=workflow%3ACI)
Crystal bindings for [libqrencode](https://fukuchi.org/works/qrencode/index.html.en).
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
qrencode:
github: woodruffw/qrencode.cr
branch: master
```
`libqrencode` is required. On Debian-based systems, it can be installed via:
```bash
$ sudo apt install libqrencode-dev
```
## Usage
`QRencode` provides methods for generating a QR symbol from various inputs (ASCII/UTF8 text, numerics,
Kanji (shift-JIS), etc).
It does *not* perform the task of rendering QR symbol data to an image format (e.g., PNG) -- it's
up to you (or a client library) to do that.
```crystal
require "qrencode"
qr = QRencode::QRcode.new("this is my input string")
qr.version
qr.width
qr.data
qr.each_row do |row|
# each row is `width` bytes
row.each do |byte|
if QRencode::Util.black? byte
print "B"
else
print "W"
end
end
puts
end
```
Check out the [examples/](examples/) directory.
## Contributing
1. Fork it (https://github.com/woodruffw/qrencode/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [woodruffw](https://github.com/woodruffw) William Woodruff - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.2.1- Tagged
- Jul 16, 2023
- Commit
56ff96d6d8a7- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/woodruffw/qrencode.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 5