Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

binderplus/anviz-backup-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anviz-backup-reader

Reads Anviz's Fingerprint Reader BAK.KQ backup files.

Install

npm install anviz-backup-reader

Usage

Sync/Async methods:

var reader     = require('anviz-backup-reader')
var filename   = './BAK.KQ'

// Sync
var records = reader.readFileSync(filename)
console.log('Sync: ', records)

// Async
reader.readFile(filename, function(records) {
    console.log('Async: ', records)
})

// Async Row by Row. Prefered method for bigger files.
reader.readFile(filename, function(row) {
    console.log(row)
}, function() {
    console.log('END')
})

Read as Stream:

var fs         = require('fs')
var reader     = require('anviz-backup-reader')
// WARN: JSONStream must be installed separately, it's not a dependency.
var JSONStream = require('JSONStream') 

// Stream
fs.createReadStream(filename)
.pipe(reader.Stream())
.pipe(JSONStream.stringify())
.pipe(process.stdout)

Comments

Not related to http://www.anviz.com/

About

Reads Anviz's Fingerprint Reader BAK.KQ backup files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published