@wademason/ofx

1.0.1 • Public • Published

OFX

A simple OFX <=> JS object parser/serializer inspired by node-ofx, ofx-js, and Banking.js

Downloads Build Coverage

Installation

$ npm install @wademason/ofx

Usage

Parsing

const fs = require('fs')
const ofx = require('@wademason/ofx')

const file = fs.readFileSync(`${__dirname}/file.ofx`, 'utf8')

const obj = ofx.parse(file)

console.log(obj)

Serializing

const fs = require('fs')
const ofx = require('@wademason/ofx')

const file = fs.readFileSync(`${__dirname}/file.ofx`, 'utf8')

const obj = ofx.parse(file)
const str = ofx.serialize(obj.headers, obj.body)

console.log(str)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @wademason/ofx

Weekly Downloads

15

Version

1.0.1

License

MIT

Unpacked Size

5.92 kB

Total Files

5

Last publish

Collaborators

  • wademason