Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "qrcode", | ||
"description": "QRCode / 2d Barcode api with both server side and client side support using canvas", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"author": "Ryan Day <soldair@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -117,3 +117,3 @@ # node-qrcode | ||
### NodeJS | ||
Simply require the module `qrcode` | ||
Require the module `qrcode` | ||
@@ -128,2 +128,11 @@ ```javascript | ||
render a qrcode for the terminal | ||
```js | ||
var QRCode = require('qrcode') | ||
QRCode.toString('I am a pony!',{type:'terminal'}, function (err, url) { | ||
console.log(url) | ||
}) | ||
``` | ||
### ES6/ES7 | ||
@@ -320,3 +329,3 @@ Promises and Async/Await can be used in place of callback function. | ||
- [toCanvas()](#tocanvascanvas-text-options-cberror) | ||
- [toDataURL()](todataurltext-options-cberror-url-1) | ||
- [toDataURL()](#todataurltext-options-cberror-url-1) | ||
- [toString()](#tostringtext-options-cberror-string-1) | ||
@@ -411,3 +420,2 @@ - [toFile()](#tofilepath-text-options-cberror) | ||
Possible values are: `image/png`, `image/jpeg`, `image/webp`.<br> | ||
**Note: `image/webp` only works in Chrome browser.** | ||
@@ -449,4 +457,4 @@ - ###### `rendererOpts.quality` | ||
Returns a string representation of the QR Code.<br> | ||
Currently only works for SVG. | ||
##### `text` | ||
@@ -460,6 +468,6 @@ Type: `String|Array` | ||
Type: `String`<br> | ||
Default: `svg` | ||
Default: `utf8` | ||
Output format.<br> | ||
Possible values are: `svg`. | ||
Possible values are: `terminal`,`utf8`, and `svg`. | ||
@@ -466,0 +474,0 @@ See [Options](#options) for other settings. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
546911
715