0.1.7 • Published 8 years ago

node-card-capture v0.1.7

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Node Card Capture

This runs a node child_process that executes a python program which listens in on a magtek card reader and returns the raw track data

New

Added support for Synchronous and Asynchronous calls

How to make it work

In order to make this work we need 3 things

  • MagTek Card Swiper
  • at least Python 2.7 installed with python libraries installed as well
  • this npm package

Installation

$ sudo apt-get install libusb-1.0-0   
$ sudo -H pip install pyusb --pre --upgrade   
$ npm install node-card-capture   

Usage

var cardCapture       = require('node-card-capture').cardCapture
var cardCaptureSync   = require('node-card-capture').cardCaptureSync

// Synchronous call aka Stops everything until it's done
var trackdata = cardCaptureSync()
console.log(trackdata)

// Asynchronous call aka will return when done and is non blocking
cardCapture(function(trackdata){
    console.log(trackdata)
})
0.1.7

8 years ago

0.1.6

8 years ago

0.1.4

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago