Files
libhalo/index.js
Michał Leszczyński 343e7f7a28 initial commit
2023-03-01 20:15:32 +01:00

35 lines
731 B
JavaScript

const {initNFCManagerHalo} = require("./fronts/nfc_manager");
const {execHaloCmdPCSC} = require("./fronts/pcsc");
const {
execHaloCmdWeb,
execHaloCmd
} = require("./fronts/common");
const {
HaloTagError,
HaloLogicError,
NFCPermissionRequestDenied,
NFCMethodNotSupported,
NFCAbortedError,
NFCOperationError
} = require("./halo/exceptions");
module.exports = {
// for desktop usage
execHaloCmdPCSC,
// for web usage
execHaloCmdWeb,
// for usage with react-native-nfc-manager
initNFCManagerHalo,
execHaloCmd,
// exceptions
HaloTagError,
HaloLogicError,
NFCPermissionRequestDenied,
NFCMethodNotSupported,
NFCAbortedError,
NFCOperationError
};