qif-writer

0.1.0 • Public • Published

qif-writer NPM version Build Status Dependency Status

JS module to write QIF (Quicken Interchange Format) files

Install

$ npm install --save qif-writer

Usage

var qif = require('qif-writer');
 
var transactions = [
  {
    date: '1/Jan/2015',
    amount: 10.50,
    payee: 'Local Coffee',
    category: 'Cafe'
  },
  {
    date: '2/Jan/2015',
    amount: 105,
    payee: 'Sample',
    memo: 'To demonstrate split',
    splits: [
      {
        amount: 5,
        category: 'Bank Charges',
        memo: 'Bank fees'  
      },
      {
        amount: 100,
        category: 'Transfer: Savings'
      }
    ]
  }
];
var options = {
  type: 'Bank'
};
qif.write(transactions, options);

This writes the following to stdout:

!Type:Bank
D1/Jan/2015
T10.5
PLocal Coffee
LCafe
^
D2/Jan/2015
T105
PSample
MTo demonstrate split
$5
SBank Charges
EBank fees
$100
STransfer: Savings
^

Options

Default options are:

{
  type: 'Cash',
  output: process.stdout.write.bind(process.stdout)
};

License

MIT © Mikhail Diatchenko

Readme

Keywords

Package Sidebar

Install

npm i qif-writer

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • muxa