npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

qr-mon

v1.0.2

Published

Microservice to create qr data stream in NodeJS with customized design options.

Downloads

4

Readme

qr-mon

Microservice to create qr data stream in NodeJS with customized design options. npm version

Getting Started

npm install qr-mon --save
var express = require('express');
var app = express();

var qr-mon = require('qr-mon');

app.get('/qr', function(req, res) {
    let error = false;
    let options = req.query;
    let text = req.query.data ? req.query.data : error = true;
    if (!error) {
        var code = qr-mon.generate(text, options);
        res.type('svg');
        res.send(code);
    } else {
        res.status(500);
        res.json({ error: 'Needs text to be encoded' });
    }
});

app.listen(3000, () => console.log('server started.....'));

HTML

<img src="http://localhost:3000/qr?data=my_data">

Options

margin

Margin to be left around the qr code

Type: Integer
Default : 0

background

Background color the qr code

Type: rgb()
Default : transparent

shape

Shape of points inside the body of the qr code

Default : 0, square

Option | Image --- | --- 0 | body shape 0 image 1 | body shape 1 image 2 | body shape 2 image 3 | body shape 3 image

eye ball

Shape of inner section of the position markers

Default : 0, square

Option | Image --- | --- 0 | eye ball 0 image 1 | eye ball 1 image 2 | eye ball 2 image 3 | eye ball 3 image 4 | eye ball 4 image 5 | eye ball 5 image 6 | eye ball 6 image 7 | eye ball 7 image 8 | eye ball 8 image 9 | eye ball 8 image rotary | rotary eye ball image

eye frame

Shape of frame of the position markers

Default : 0, square

Option | Image --- | --- 0 | eye_frame 0 image 1 | eye_frame 1 image 2 | eye_frame 2 image 3 | eye_frame 3 image 4 | eye_frame 4 image 5 | eye_frame 5 image 6 | eye_frame 6 image 7 | eye_frame 7 image 8 | eye_frame 8 image 9 | eye_frame 9 image

fill

Fill of the qr code

Default : solid

  • solid
  • linear-horizontal
  • linear-vertical
  • radial

color

color of the qr code

Default :
solid : black
gradient : rgb(0,0,0), rgb(2,119,189)

  • solid - rgb / name of color
  • gradient - color1.color2
1. http://localhost:3000/qr?data=my_data&fill=radial&color=red.black

2. http://localhost:3000/qr?data=my_data&fill=radial  (default-fill)