Socket
Book a DemoInstallSign in
Socket

bank-csv-to-ynab

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bank-csv-to-ynab

An app to convert bank CSV export files to CSV files in YNAB format.

0.0.4
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

bank-csv-to-ynab

This is a simple tool to convert CSV files from banking transactions to the correct format to be imported into YNAB.

Notes

Currently only DKB CSVs are supported.

Usage

API

For usage see tests. Here is an example:

const dkbCSVToYNABCSV = require('bank-csv-to-ynab')
let DKBFileASString // This is the input string. Possibly read from file.

dkbCSVToYNABCSV(DKBFileAsString).then((ynabCSVString) =>
  console.log(ynabCSVString)
)

CLI

Lets say you have an input dbk.csv with the following content:

"Kontonummer:";"DE04120300002020202020 / Girokonto"
"Von:";"04.09.2018"
"Bis:";"04.10.2018"
"Kontostand vom 04.10.2018:";"42,42 EUR"

"Buchungstag";"Wertstellung";"Buchungstext";"Auftraggeber / Beg�nstigter";"Verwendungszweck";"Kontonummer";"BLZ";"Betrag (EUR)";"Glaeubiger-ID";"Mandatsreferenz";"Kundenreferenz"
"02.10.2018";"02.10.2018";"Dauerauftrag";"Hans Foo";"Semestergebuehren";"DE48733500000600600600";"BYLADEMAAAA";-50;;;"NOTPROVIDED"
"03.10.2018";"03.10.2018";"Auftrag";"Foo Hans";"Semestergebuehren";"DE48733500000600600600";"BYLADEMAAAA";10;;;"NOTPROVIDED"

You can then use the script like so:

$ npx -q bank-csv-to-ynab dkb_sample_line_DKB.csv
"Date","Payee","Memo","Outflow","Inflow"
"10/02/2018","Hans Foo","Semestergebuehren","50",""
"10/03/2018","Foo Hans","Semestergebuehren","","10"

Keywords

ynab

FAQs

Package last updated on 30 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.