Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rmqr

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmqr

Rectangular Micro QR code generator for node

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
0
Weekly downloads
 
Created
Source

rMQR

This package allows you to create rMQRs (Rectangular Micro QR)

Usage

Some basic usage of the package.

const { rmqr } = require('rmqr');

console.log(rmqr.generate('Some text'))

This will return an object with a width, height and a 2d array.

You can also generate a image and adjust some settings

const { rmqr, strategy, correction } = require('rmqr');

let data = rmqr.generate('Other text', {
  strategy: strategy.minHeight, // Options: balanced, min-height, minHeight, min-width, minWidth
  correction: correction.high // Options: auto, medium, high (high has a lower max characters)
})

console.log(rmqr.toImage(data, 'jpg', 'uri', 10))
/*
1st the object from the generate
2nd argument is a image extension (png, jpg, jpeg, webp, tiff...)
3rd is the way the data will be presented (buffer or uri)
4th number of pixels per color
*/

Keywords

FAQs

Package last updated on 25 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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