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

quander-scanner

v1.0.4

Published

Quander ID Client for Quander Mobile Web Apps

Downloads

5

Readme

#Installation npm install quander-scanner

Usage

The scanner comes in two parts. One is an iOS app that uses our Quander ID scanner to scan, decrypt/decode a QR code.

The second is a JavaScript client that runs in your web app to receive an attendee object which contains everything you need to submit that attendee via the Quander SDK.

The JavaScript client can be used to control the QR Scanner.

The QR Scanner presents itself behind your webpage, this allows you to skin it the way that you like by adding UI in your web application.

To see the scanner, you must set your body background to be transparent.

iOS App

  • Download and install the Quander Scanner for iOS, you can request a download link from your Quander Account manager.
  • Set the Web App URL setting in the settings for the iOS app to your entry page

Web App

  • Require 'quander-scanner' in your file

var QuanderScanner = require('quander-scanner').QuanderScanner

  • Create a new instance of the scanner

var scanner = new QuanderScanner()

  • Listen for the ready event
scanner.on('ready', function(error) {
    alert('Ready!');
}});
  • Once ready, you can start using the scanner

How to Start The Scanner

Once the scanner is ready, you can start it. If the scanner is not ready, it will throw an error

try {
    scanner.start();
} catch (error){
    // Handle your error!
}

Receiving a New Attendee

When a valid Quander ID has been scanned, a new-attendee event is emitted.

scanner.on('new-attendee', function(attendee){
    alert('New Attendee!');
});

The Attendee Object

On a successful scan, you will receive an attendee object. The attendee object will contain the attendee's name, code and type if the attendee has registered through the event companion.

Registered Attendee

{
    firstname: 'Firstname',
    lastname: 'Lastname',
    code: '123e4567-e89b-12d3-a456-426655440000',
    type: 'attendeeUUID'
}

Un-Registered Attendee

{
    firstname: '',
    lastname: '',
    code: 'QNDR12345',
    type: 'referenceID'
}

Note that the firstname and lastname properties are blank.

Pausing and Resuming the Scanner

It is recommended that you pause the scanner whilst you're processing the data and resume it if you need to scan another code.

scanner.on('new-attendee', function(attendee){
    scanner.pause();
    alert('New Attendee!');
    scanner.resume();
});

Stopping the Scanner

To save battery, you should stop the scanner when you no longer need it and unsubscribe from the new-attendee event.

scanner.off('new-attendee');
scanner.stop();

If you are using React.js, this should be done in componentWillUnmount.