qif-ts-multiaccount
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

qif-ts

Typescript module to parse QIF files. Tries to provide a one-to-one mapping of the physical model into a typed object. Only primitives are converted, dates are read in the format given and provided as strings for the user to parse as they like.

Uses the specification here as a source of truth.

If you require date parsing, or a CLI tool, please look into qif2json, which provided a basis for much of this library.

Installing and using

$ npm install --save qif-ts

Typescript

import { deserializeQif, serializeQif, QifData } from 'qif-ts';

const qifData: QifData = deserializeQif(qifText);
const qifText: string = serializeQif(qifData);

Javascript

Although designed for typescript applications, qif-ts will also integrate fine into javascript projects.

const qifTs = require('qif-ts');

const qifData = qifTs.deserializeQif(qifText);
const qifText = qifTs.serializeQif(qifData);

Changelog

  • 0.0.1 Support for Investment, Bank, Cash, Card, Other Asset and Other Liability QIF file types
  • 0.0.2 Handles low quality inputs with more descriptive errors
  • 1.0.0 Refactoring and addition of TsDoc documentation.
    • qifToJson to deserializeQif
    • jsonToQif to serializeQif

Package Sidebar

Install

npm i qif-ts-multiaccount

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

23.9 kB

Total Files

10

Last publish

Collaborators

  • gustawdaniel