Socket
Book a DemoInstallSign in
Socket

@extensionengine/hub3

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extensionengine/hub3

Parse HUB3 formatted bank reports

1.0.0
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

@extensionengine/hub3

circleci build status install size npm package version github license js @extensionengine style

Parse HUB3 formatted bank reports

Installation

npm install @extensionengine/hub3

API

Table of Contents

HUB3Error

Extends Error

Base class for all HUB3 specific errors

isHUB3Error

Check if error is HUB3 specific error

Parameters

Returns boolean result

ParserError

Extends HUB3Error

Custom error class used for reporting parsing errors

parseHUB3

Parse HUB3 bank report

Parameters

  • buffer Buffer HUB3 file contents

Examples

const { HUB3Error, parse } = require('@extensionengine/hub3');
const path = require('path');
const { readFileSync } = require('fs');

const hub3 = readFileSync(path.join(__dirname, '../reports/1110779471-20200826.mn'));
try {
  const records = parse(hub3);
  console.log({ records });
} catch (err) {
  if (!HUB3Error.isHUB3Error(err)) throw err;
  console.error('Failed to parse report:', err.message);
  process.exit(1);
}

Returns Array<LineRecord> array of line records

LineRecord

Type: Object

Properties

Keywords

HUB3

FAQs

Package last updated on 29 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.