UNPKG

nodecardcapture

Version:

read magnetic card from a card reader in python, managed by node

12 lines (8 loc) 304 B
'use strict' let exec = require('child_process').execSync var cardCapture = function(callback) { console.log('The process is happeing in ' + __dirname) var trackdata = exec('sudo python ' + __dirname + '/card-reader.py').toString('utf8') callback(trackdata) } module.exports = cardCapture