Socket
Socket
Sign inDemoInstall

@extensionengine/hub3

Package Overview
Dependencies
2
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @extensionengine/hub3

Parse HUB3 formatted bank reports


Version published
Maintainers
3
Install size
391 kB
Created

Readme

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

FAQs

Last updated on 29 Aug 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc