@wademason/ofx
v1.0.1
Published
A simple OFX <=> JS object parser/serializer
Downloads
30
Readme
OFX
A simple OFX <=> JS object parser/serializer inspired by node-ofx, ofx-js, and Banking.js
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)