Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including aba-stringify with all npm packages installed. Try it out:

var abaStringify = require("aba-stringify")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

aba-stringify v1.0.1

format an ABA file.

aba-stringify Build Status

format an ABA file.

Install

$ npm install aba-stringify

Example

const abaStringify = require('aba-stringify');

const headers = {
  reelSequenceNumber: 1,
  fiAbbreviation: 'BQL',
  preferredSpecification: 'MY NAME',
  userIdentification: '111111',
  description: '1004231633',
  date: new Date('2010-04-23')
};

const rows = [
  {
    bsb: '123-456',
    accountNumber: '157108231',
    indicator: ' ',
    transactionCode: '53',
    amount: 1234,
    accountTitle: 'S R SMITH',
    lodgementReference: 'TEST BATCH',
    traceRecordBsb: '062-000',
    traceRecordAccountNumber: '12223123',
    remitterName: 'MY ACCOUNT',
    withhealdTax: 1200
  },
  {
    bsb: '123-783',
    accountNumber: '12312312',
    indicator: ' ',
    transactionCode: '53',
    amount: 2200,
    accountTitle: 'J K MATTHEWS',
    lodgementReference: 'TEST BATCH',
    traceRecordBsb: '062-000',
    traceRecordAccountNumber: '12223123',
    remitterName: 'MY ACCOUNT',
    withhealdTax: 30
  },
  {
    bsb: '456-789',
    accountNumber: '125123',
    indicator: ' ',
    transactionCode: '53',
    amount: 3123513,
    accountTitle: 'P R JONES',
    lodgementReference: 'TEST BATCH',
    traceRecordBsb: '062-000',
    traceRecordAccountNumber: '12223123',
    remitterName: 'MY ACCOUNT',
    withhealdTax: 0
  },
  {
    bsb: '121-232',
    accountNumber: '11422',
    indicator: ' ',
    transactionCode: '53',
    amount: 2300,
    accountTitle: 'S MASLIN',
    lodgementReference: 'TEST BATCH',
    traceRecordBsb: '062-000',
    traceRecordAccountNumber: '12223123',
    remitterName: 'MY ACCOUNT',
    withhealdTax: 0
  }
];

const abaString = abaStringify(headers, rows);

example output

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free