Socket
Socket
Sign inDemoInstall

qrcode

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qrcode - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc