1.0.1 • Published 3 years ago

@wademason/ofx v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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