Commit graph

96 commits

Author SHA1 Message Date
Torben Neufeldt
b9c260d8a3 Remove encode-utf8 2022-09-29 09:42:14 +02:00
Jonas Eckstein
975eecd0d0 Fix binary data as input in byte mode 2022-01-31 18:11:46 +01:00
Ryan Day
9aeacd8b5d fix: ficing double call for callbacks on error saving png to file 2021-11-23 11:49:20 -08:00
Ryan Day
f08fd572d7
Merge pull request from bambooCZ/renderer-terminal-small
Add support for smaller terminal QR codes
2020-10-28 14:05:44 -07:00
Alanscut
db49e41727 fix undefined error when opts is undefined 2020-10-12 20:51:04 +08:00
Miloslav Mrvík
77ec831fa8
Smaller terminal QR codes 2020-05-26 17:09:11 +02:00
Linus Unnebäck
cb7865b9ee
Use builtin Array.isArray 2020-04-18 11:42:34 +01:00
Linus Unnebäck
9cc0e3b78d
Use const/let instead of var 2020-04-16 22:50:11 +01:00
Linus Unnebäck
48b4cdc93e
Upgrade to Standard v14 2020-03-30 19:08:20 +01:00
Linus Unnebäck
94009ab826
Avoid dependency on Buffer 2020-03-30 18:35:04 +01:00
Ryan Day
eb2d499ba7 fix: making require for buffer module explicit fixes 2019-11-13 13:39:13 -08:00
Ryan Day
cc2a41f8cc fix: buffer class for browsers 2019-11-05 08:22:38 -08:00
Ryan Day
6058f49c89 fix: undefined variable Buffer in reed 2019-11-05 08:05:23 -08:00
Linus Unnebäck
55d6278036
Avoid using deprecated APIs on newer Node.js 2019-11-01 11:48:00 +00:00
Ryan Day
a8ebc8344c removing console.log 2019-07-17 08:39:05 -07:00
Ryan Day
f6ee352aaa feat: inverting colors on utf8 rendered codes
if you pass -d / --dark as fff or -l / --light 000 you'll get inverted
background/foreground characters in the output fixes 
2019-07-08 09:00:34 -07:00
Ryan Day
e4ad095083 fix: fixes yargs coercing number args eating zeros 2019-07-03 15:28:49 -07:00
Matthijs Abma
d59c2bf8fb Add support for color codes containing only digits 2019-02-05 21:43:42 +01:00
Ryan Day
b265e314c1 lint: standard 2019-01-16 10:23:22 -08:00
Ryan Day
a40c757205 fix: security vulnerabillities and a ref to new Buffer 2019-01-16 09:41:32 -08:00
Ryan Day
25144450d7 fix: forgot can-promise replacement 2018-11-05 10:06:00 -08:00
Ryan Day
8197d780b8 fix: replacing can-promise 2018-11-02 14:49:58 -07:00
Ryan Day
690acce652
Merge pull request from yzwduck/fix-seg-toFile
Fix passing manual segments list to QRCode.toFile
2018-10-01 08:42:34 -07:00
Ryan Day
2d2ad96c5c
Merge pull request from qazs/master
Added render to buffer function
2018-10-01 08:41:15 -07:00
Ryan Day
7ba2c74bd0
Merge pull request from Tietew/include-crlf-in-byte-segs
ensure to include CR/LF in BYTE segments
2018-09-11 11:28:00 -07:00
nerdyman
2ac5dd7eb4 Add 'shape-rendering=crispEdges' to SVG expected.out files to fix failing tests 2018-09-11 14:39:06 +01:00
IWASE
26fb3f6ba2 regex s flag is ES2018 feature 2018-08-06 16:58:18 +09:00
IWASE
81994c4e4d ensure to include CR/LF in BYTE segments 2018-08-06 16:37:58 +09:00
Ryan Day
025453e3a7
Merge pull request from shamas/bug-131-circular-dependency
Fix for issue-131
2018-07-19 16:06:09 -07:00
Thijs Busser
7fb89ec10e Fix maskPattern 0 parameter
When providing the option maskPattern it doesn't correctly handle mask
pattern 0. The checks failed to account for the fact that 0 is a falsy
value.
2018-07-11 09:25:09 +02:00
Kennedy
5ec88732d6 svg shape-rendering=crispEdges per 2018-06-06 19:06:53 +07:00
James Nicholson
925a98e571 Extracted the version check function into a separate unit to avoid having the circular dependency. Nothing fancy and no functional change. 2018-05-16 15:14:48 -04:00
YeahO_O Yuan
c301458aae Fix passing manual segment list to toFile 2018-03-07 16:56:06 +08:00
Wilson Nger
c598ef632d Applied standard js 2018-01-26 14:58:53 +08:00
Wilson Nger
d5c7b2045a Refactored buffer function 2018-01-26 11:13:12 +08:00
Wilson Nger
f57babf7ea Fixed render to buffer function name 2018-01-26 10:33:26 +08:00
Wilson Nger
63cb7a5939 Added render to buffer 2018-01-09 17:53:00 +08:00
Vincenzo Greco
d7066d4a08 Add support for Promises 2017-12-28 17:09:29 +01:00
Vincenzo Greco
740c9294ff Draw svg as vector path 2017-12-27 19:19:12 +01:00
Vincenzo Greco
4efb6ba77f
Merge pull request from soldair/feature/width-option
Add width option
2017-12-27 18:59:07 +01:00
Vincenzo Greco
acb5257ee1 Fix bug in alphanumeric regexp 2017-12-15 16:08:12 +01:00
Vincenzo Greco
673d1a3b4b Add width option 2017-11-12 19:34:20 +01:00
Vincenzo Greco
cda1000df9 Merge pull request from soldair/fix/encoding-regex
Build final kanji regex at runtime
2017-10-26 20:56:20 +02:00
Vincenzo Greco
063be87bdb Build final kanji regex at runtime 2017-10-24 22:42:48 +02:00
Vincenzo Greco
3707f37f9d Remove legacy API 2017-10-24 17:02:40 +02:00
Vincenzo Greco
df64340545 Merge pull request from soldair/feature/mask-option
Add mask pattern option
2017-10-17 14:43:44 +02:00
Vincenzo Greco
712a7281aa Minor fixes for IE9 2017-09-23 15:23:40 +02:00
Vincenzo Greco
0f9aa458e1 Fix Buffer to work with IE9 2017-09-23 15:23:25 +02:00
Vincenzo Greco
1f1487b581 Add mask pattern option 2017-07-28 15:22:07 +02:00
Vincenzo Greco
4797f8ec3e Fix error event not emitted in toFileStream api 2017-07-19 16:18:52 +02:00