qif-writer
JS module to write QIF (Quicken Interchange Format) files
Last updated 5 years ago by muxa .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install qif-writer 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (9)

Copyright 2014 - 2017 © taobao.org |