qif-ts
v1.0.0
Published
Typescript library to map QIF formatted data
Downloads
65
Maintainers
Readme
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 types0.0.2
Handles low quality inputs with more descriptive errors1.0.0
Refactoring and addition of TsDoc documentation.qifToJson
todeserializeQif
jsonToQif
toserializeQif