Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
/ ofx Public archive

A simple OFX <=> JS object parser/serializer

Notifications You must be signed in to change notification settings

WadeMason/ofx

Repository files navigation

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

About

A simple OFX <=> JS object parser/serializer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published