snow-shoe-touch

0.1.0 • Public • Published

snow-shoe-touch

A lightweight and flexible version of the snowshoe JS library. This node module also doesn't depend on jQuery.

##Installation

npm install snow-shoe-touch

##Usage var SnowShoe = require("snow-shoe-touch");

Once your app is ready to interact with the snow shoe stamp just call the init function.

SnowShoe.init("stamp-screen", function(stampData){
		// your logic here
});

The first argument is the id of the element on which you are planning to listen for the stamp. Based on snow shoe's recommendation this should be the id of the body tag.

The second argument is the callback function. This function is called whenever a stamp is detected and the stamp point data is passed along to it. The stampData is the point data that you can send over to the snow shoe API to get back the stamp serial number.

You can learn more about snow shoe stamp here and find their docs here

Readme

Keywords

none

Package Sidebar

Install

npm i snow-shoe-touch

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • dsanka